mdns: fix wrong SRV/PTR record handling

* Original commit: espressif/esp-idf@e6135552d2
This commit is contained in:
Jiacheng Guo
2021-05-06 16:03:42 +08:00
committed by suren-gabrielyan-espressif
parent 9fa25ef3b6
commit 402baebfee
3 changed files with 55 additions and 48 deletions

View File

@ -215,7 +215,7 @@ typedef struct {
} mdns_header_t;
typedef struct {
char host[MDNS_NAME_BUF_LEN];
char host[MDNS_NAME_BUF_LEN]; // hostname for A/AAAA records, instance name for SRV records
char service[MDNS_NAME_BUF_LEN];
char proto[MDNS_NAME_BUF_LEN];
char domain[MDNS_NAME_BUF_LEN];