From 9b81f11f17b691b83b6287d13589924146f029be Mon Sep 17 00:00:00 2001 From: BBBits Date: Tue, 12 Jan 2021 09:57:34 +1300 Subject: [PATCH] Resolve mDNS not restarting on wifi dn/up also changed log prefix for mDNS from DNS: to mDN: --- tasmota/i18n.h | 2 +- tasmota/support_network.ino | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/i18n.h b/tasmota/i18n.h index 0d18f016a..3262bef09 100644 --- a/tasmota/i18n.h +++ b/tasmota/i18n.h @@ -680,7 +680,7 @@ #define D_LOG_KNX "KNX: " #define D_LOG_LOG "LOG: " // Logging #define D_LOG_MODULE "MOD: " // Module -#define D_LOG_MDNS "DNS: " // mDNS +#define D_LOG_MDNS "mDN: " // mDNS #define D_LOG_MQTT "MQT: " // MQTT #define D_LOG_OTHER "OTH: " // Other #define D_LOG_RESULT "RSL: " // Result diff --git a/tasmota/support_network.ino b/tasmota/support_network.ino index 0a41b933a..b2bb73bf0 100644 --- a/tasmota/support_network.ino +++ b/tasmota/support_network.ino @@ -36,6 +36,7 @@ void StartMdns(void) { // mdns_delayed_start--; // } else { // mdns_delayed_start = Settings.param[P_MDNS_DELAYED_START]; + MDNS.end(); // close existing or MDNS.begin will fail Mdns.begun = (uint8_t)MDNS.begin(TasmotaGlobal.hostname); AddLog_P(LOG_LEVEL_INFO, PSTR(D_LOG_MDNS "%s"), (Mdns.begun) ? D_INITIALIZED : D_FAILED); // }