forked from espressif/esp-protocols
mdns: Add MDNS_STRICT_MODE config option
Strict mode was hardcoded in private header file, but it's useful for users to enable/disable it depending on the mdns library they are using. e.g. Avahi might not resolve the non-strict answers. * Original commit: espressif/esp-idf@0eee31546d
This commit is contained in:
1 parent
7a8329cb5c
commit
adc34309dc
2 files changed
+15
No files matched your search
@@ -32,7 +32,11 @@
|
||||
* such as lwIP mdns resolver (used by standard POSIX API like getaddrinfo, gethostbyname)
|
||||
* could not correctly resolve advertised names.
|
||||
*/
|
||||
#ifndef CONFIG_MDNS_STRICT_MODE
|
||||
#define MDNS_STRICT_MODE 0
|
||||
#else
|
||||
#define MDNS_STRICT_MODE 1
|
||||
#endif
|
||||
|
||||
#if !MDNS_STRICT_MODE
|
||||
/* mDNS responders sometimes repeat queries in responses
|
||||
|
||||
Reference in new issue
Block a user