mirror of
https://github.com/arendst/Tasmota.git
synced 2026-10-26 22:11:22 +00:00
Fix hostByName returning negative values when lookup failed
This commit is contained in:
1 parent
2289c619bb
commit
c00ece8681
1 file changed
+1
-1
@@ -1941,7 +1941,7 @@ bool WifiHostByName(const char* aHostname, IPAddress& aResult) {
|
||||
#endif // USE_IPV6
|
||||
|
||||
uint32_t dns_start = millis();
|
||||
bool success = WiFiHelper::hostByName(aHostname, aResult, Settings->dns_timeout);
|
||||
bool success = (WiFiHelper::hostByName(aHostname, aResult, Settings->dns_timeout) == 1); // https://github.com/letscontrolit/ESPEasy/commit/050017b2b00e1512e46ccc9bc3e2d0568a8c15d7
|
||||
uint32_t dns_end = millis();
|
||||
if (success) {
|
||||
// Host name resolved
|
||||
|
||||
Reference in new issue
Block a user