Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ceceb

Browse files
authored
Merge branch 'master' into poc-cache-config
2 parents 57043bd + a8515a7 commit 17ceceb

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

libraries/ESP8266mDNS/src/LEAmDNS.cpp

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -114,33 +114,20 @@ bool MDNSResponder::begin(const char* p_pcHostname, const IPAddress& p_IPAddress
114114
IPAddress sta = WiFi.localIP();
115115
IPAddress ap = WiFi.softAPIP();
116116

117-
if (!sta.isSet() && !ap.isSet())
117+
if (sta.isSet())
118118
{
119-
120-
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] internal interfaces (STA, AP) are not set (none was specified)\n")));
121-
return false;
119+
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] STA interface selected\n")));
120+
ipAddress = sta;
122121
}
123-
124-
if (ap.isSet())
122+
else if (ap.isSet())
125123
{
126-
127-
if (sta.isSet())
128-
{
129-
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] default interface AP selected over STA (none was specified)\n")));
130-
}
131-
else
132-
{
133-
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] default interface AP selected\n")));
134-
}
124+
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] AP interface selected\n")));
135125
ipAddress = ap;
136-
137126
}
138127
else
139128
{
140-
141-
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] default interface STA selected (none was specified)\n")));
142-
ipAddress = sta;
143-
129+
DEBUG_EX_INFO(DEBUG_OUTPUT.printf_P(PSTR("[MDNSResponder] standard interfaces are not up, please specify one in ::begin()\n")));
130+
return false;
144131
}
145132

146133
// continue to ensure interface is UP

tests/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function install_ide()
165165
wget -nv https://www.python.org/ftp/python/3.8.1/python-3.8.1-embed-win32.zip
166166
unzip -q python-3.8.1-embed-win32.zip
167167
cp "python.exe" "python3.exe"
168-
wget -nv -O sed.exe https://github.com/mbuilov/sed-windows/raw/master/sed-4.7-x64.exe
168+
wget -nv -O sed.exe https://github.com/mbuilov/sed-windows/raw/master/sed-4.8-x64.exe
169169
#wget -nv https://fossies.org/windows/misc/unz600xn.exe
170170
#unzip -q ./unz600xn.exe
171171
popd

0 commit comments

Comments
 (0)