From 019400d77dd1991a580d2b8f36f0ae3dd858a6f1 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:32:48 +0200 Subject: [PATCH] Fix ESP32 ethernet gateway et al Fix ESP32 ethernet gateway et al (#8503) --- tasmota/xdrv_82_ethernet.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/xdrv_82_ethernet.ino b/tasmota/xdrv_82_ethernet.ino index e20cde4e5..e1d973c62 100644 --- a/tasmota/xdrv_82_ethernet.ino +++ b/tasmota/xdrv_82_ethernet.ino @@ -95,6 +95,9 @@ void EthernetEvent(WiFiEvent_t event) { Serial.print(ETH.linkSpeed()); Serial.println("Mbps"); */ + Settings.ip_address[1] = (uint32_t)ETH.gatewayIP(); + Settings.ip_address[2] = (uint32_t)ETH.subnetMask(); + Settings.ip_address[3] = (uint32_t)ETH.dnsIP(); global_state.eth_down = 0; break; case SYSTEM_EVENT_ETH_DISCONNECTED: