Update WiFiManager.cpp (#1657)

This commit is contained in:
Nicolas T
2023-09-21 08:59:06 -05:00
committed by GitHub
parent 0d07e09a44
commit 6a92492bee
+1 -2
View File
@@ -2422,12 +2422,11 @@ boolean WiFiManager::captivePortal() {
String serverLoc = toStringIp(server->client().localIP());
// fallback for ipv6 bug
if(serverloc = 0.0.0.0){
if(serverLoc = "0.0.0.0"){
if ((WiFi.status()) != WL_CONNECTED)
serverLoc = toStringIp(WiFi.softAPIP());
else
serverLoc = toStringIp(WiFi.localIP());
}
}
if(_httpPort != 80) serverLoc += ":" + (String)_httpPort; // add port if not default