Merge pull request #12091 from ascillato/patch-1

Show the new IP after the Wi-Fi Initial Config
This commit is contained in:
Theo Arends 2021-05-13 08:13:56 +02:00 committed by GitHub
commit 9742a4e249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ void WebRestart(uint32_t type)
} else {
#if (AFTER_INITIAL_WIFI_CONFIG_GO_TO_NEW_IP)
WSContentTextCenterStart(WebColor(COL_TEXT_SUCCESS));
WSContentSend_P(PSTR(D_SUCCESSFUL_WIFI_CONNECTION "<br><br></div><div style='text-align:center;'>" D_REDIRECTING_TO_NEW_IP "<br><br></div>"));
WSContentSend_P(PSTR(D_SUCCESSFUL_WIFI_CONNECTION "<br><br></div><div style='text-align:center;'>" D_REDIRECTING_TO_NEW_IP "<br><br><a href='http://%_I'>%_I</a><br></div>"),(uint32_t)WiFi.localIP(),(uint32_t)WiFi.localIP());
#else
WSContentTextCenterStart(WebColor(COL_TEXT_SUCCESS));
WSContentSend_P(PSTR(D_SUCCESSFUL_WIFI_CONNECTION "<br><br></div><div style='text-align:center;'>" D_NOW_YOU_CAN_CLOSE_THIS_WINDOW "<br><br></div>"));