Skip to content

Commit 827ea65

Browse files
committed
fix(mdns): Allow advertizing service with port==0
Closes espressif/esp-idf#14335
1 parent 9537721 commit 827ea65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdns/mdns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5895,7 +5895,7 @@ esp_err_t mdns_instance_name_set(const char *instance)
58955895
esp_err_t mdns_service_add_for_host(const char *instance, const char *service, const char *proto, const char *host,
58965896
uint16_t port, mdns_txt_item_t txt[], size_t num_items)
58975897
{
5898-
if (!_mdns_server || _str_null_or_empty(service) || _str_null_or_empty(proto) || !port || !_mdns_server->hostname) {
5898+
if (!_mdns_server || _str_null_or_empty(service) || _str_null_or_empty(proto) || !_mdns_server->hostname) {
58995899
return ESP_ERR_INVALID_ARG;
59005900
}
59015901

0 commit comments

Comments
 (0)