mirror of https://github.com/arendst/Tasmota.git
parent
7d94a2c89e
commit
33d6dbed3d
|
@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
|
||||||
### Fixed
|
### Fixed
|
||||||
- Energy dummy switched voltage and power regression from v12.2.0.2
|
- Energy dummy switched voltage and power regression from v12.2.0.2
|
||||||
- Orno WE517 modbus serial config 8E1 setting (#17545)
|
- Orno WE517 modbus serial config 8E1 setting (#17545)
|
||||||
|
- No IP address shown when in AP moode (#17599)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -761,6 +761,10 @@ bool WifiGetIP(IPAddress *ip) {
|
||||||
if (ip != nullptr) { *ip = WiFi.localIP(); }
|
if (ip != nullptr) { *ip = WiFi.localIP(); }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if ((uint32_t)WiFi.softAPIP() != 0) {
|
||||||
|
if (ip != nullptr) { *ip = WiFi.softAPIP(); }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
IPAddress lip;
|
IPAddress lip;
|
||||||
if (WifiGetIPv6(&lip)) {
|
if (WifiGetIPv6(&lip)) {
|
||||||
if (ip != nullptr) { *ip = lip; }
|
if (ip != nullptr) { *ip = lip; }
|
||||||
|
|
|
@ -3209,7 +3209,7 @@ bool CaptivePortal(void)
|
||||||
if ((WifiIsInManagerMode()) && !ValidIpAddress(Webserver->hostHeader().c_str())) {
|
if ((WifiIsInManagerMode()) && !ValidIpAddress(Webserver->hostHeader().c_str())) {
|
||||||
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP D_REDIRECTED));
|
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP D_REDIRECTED));
|
||||||
|
|
||||||
Webserver->sendHeader(F("Location"), String(F("http://")) + Webserver->client().localIP().toString(), true);
|
Webserver->sendHeader(F("Location"), String(F("http://")) + IPGetListeningAddressStr(), true);
|
||||||
WSSend(302, CT_PLAIN, ""); // Empty content inhibits Content-length header so we have to close the socket ourselves.
|
WSSend(302, CT_PLAIN, ""); // Empty content inhibits Content-length header so we have to close the socket ourselves.
|
||||||
Webserver->client().stop(); // Stop is needed because we sent no content length
|
Webserver->client().stop(); // Stop is needed because we sent no content length
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue