Skip to content

Commit

Permalink
Update WiFiManager.cpp (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
furynick authored Sep 21, 2023
1 parent 0d07e09 commit 6a92492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 6a92492

@olonsoft
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

if (serverLoc == "0.0.0.0")

Please sign in to comment.