mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Refactor ip address representation (#5252)
This commit is contained in:
@@ -48,7 +48,7 @@ void CaptivePortal::start() {
|
||||
this->dns_server_ = make_unique<DNSServer>();
|
||||
this->dns_server_->setErrorReplyCode(DNSReplyCode::NoError);
|
||||
network::IPAddress ip = wifi::global_wifi_component->wifi_soft_ap_ip();
|
||||
this->dns_server_->start(53, "*", (uint32_t) ip);
|
||||
this->dns_server_->start(53, "*", IPAddress(ip));
|
||||
#endif
|
||||
|
||||
this->base_->get_server()->onNotFound([this](AsyncWebServerRequest *req) {
|
||||
|
||||
Reference in New Issue
Block a user