Skip to content

Commit 71a93cc

Browse files
authored
fix(dhcp): Fix DHCP Captive Portal URL (#12263)
1 parent a95ef79 commit 71a93cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libraries/WiFi/src/AP.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ bool APClass::enableDhcpCaptivePortal() {
319319

320320
// Create Captive Portal URL: http://192.168.0.4
321321
strcpy(captiveportal_uri, "http://");
322-
strcat(captiveportal_uri, String(localIP()).c_str());
322+
strcat(captiveportal_uri, localIP().toString().c_str());
323+
log_i("DHCP Captive Portal URL: %s", captiveportal_uri);
323324

324325
// Stop DHCPS
325326
err = esp_netif_dhcps_stop(_esp_netif);

0 commit comments

Comments
 (0)