Skip to content

Commit 6a92492

Browse files
authored
Update WiFiManager.cpp (#1657)
1 parent 0d07e09 commit 6a92492

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

WiFiManager.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -2422,12 +2422,11 @@ boolean WiFiManager::captivePortal() {
24222422
String serverLoc = toStringIp(server->client().localIP());
24232423

24242424
// fallback for ipv6 bug
2425-
if(serverloc = 0.0.0.0){
2425+
if(serverLoc = "0.0.0.0"){
24262426
if ((WiFi.status()) != WL_CONNECTED)
24272427
serverLoc = toStringIp(WiFi.softAPIP());
24282428
else
24292429
serverLoc = toStringIp(WiFi.localIP());
2430-
}
24312430
}
24322431

24332432
if(_httpPort != 80) serverLoc += ":" + (String)_httpPort; // add port if not default

0 commit comments

Comments
 (0)