mdns leak fix

This commit is contained in:
2022-01-03 21:59:14 +03:00
parent ac9ed03fe5
commit 1ce769de92

View File

@@ -1082,6 +1082,8 @@ if (WiFi.status() == WL_CONNECTED) {
errorSerial<<F("Error setting up MDNS responder!")<<endl;
else infoSerial<<F("mDNS responder started.")<<endl;
mdns.removeAllServiceRecords();
char txtRecord[32] = "\x10mac=";
SetBytes(sysConf.mac,6,txtRecord+5);