Fix IPV6 compilation on ESP8266 (#17429)

This commit is contained in:
s-hadinger 2022-12-17 22:41:21 +01:00 committed by GitHub
parent c908dc289e
commit 5048777e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -407,9 +407,8 @@
// -- IPv6 support ------------------------------- // -- IPv6 support -------------------------------
// #define USE_IPV6 // Enable IPv6 support (if the underlying esp-idf is also configured to support it) // #define USE_IPV6 // Enable IPv6 support (if the underlying esp-idf is also configured to support it)
// Code size increase: // Code size increase: ESP8266: +34.5kb
// ESP8266: tbd // Enabled by default on ESP32 and variants
// ESP32: tbd
// -- ESP-NOW ------------------------------------- // -- ESP-NOW -------------------------------------
//#define USE_TASMESH // Enable Tasmota Mesh using ESP-NOW (+11k code) //#define USE_TASMESH // Enable Tasmota Mesh using ESP-NOW (+11k code)

View File

@ -922,7 +922,9 @@ bool WifiDNSGetIPv6Priority(void) {
// any change of state requires a dns cache clear // any change of state requires a dns cache clear
if (had_v6prio != v6prio) { if (had_v6prio != v6prio) {
dns_clear_cache(); #ifdef ESP32
dns_clear_cache(); // this function doesn't exist in LWIP used by ESP8266
#endif
had_v6prio = v6prio; had_v6prio = v6prio;
} }