fix dns name being set to "tasmota"

This commit is contained in:
proddy
2026-04-18 19:42:45 +02:00
parent 86a20fc97a
commit 1d33a26318
2 changed files with 10 additions and 4 deletions

View File

@@ -1061,6 +1061,10 @@ void System::network_init() {
digitalWrite(eth_power_, HIGH);
}
eth_present_ = ETH.begin(type, phy_addr, mdc, mdio, power, clock_mode);
if (eth_present_) {
// Push hostname to the ETH netif immediately after it's created
ETH.setHostname(hostname_.c_str());
}
#endif
}