mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Update WiFiManager.cpp (#1657)
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user