From 4ee743d3096daa38c24535778a700a5807e44901 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 13 Dec 2025 11:29:01 +0100 Subject: [PATCH] fix standalone --- src/core/system.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index af70e6ee6..8501f34f1 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1792,6 +1792,7 @@ std::string System::get_metrics_prometheus() { // return IP or hostname of the EMS-ESP device String System::get_ip_or_hostname() { String result = "ems-esp"; +#ifndef EMSESP_STANDALONE EMSESP::esp32React.getNetworkSettingsService()->read([&](NetworkSettings & settings) { if (settings.enableMDNS) { if (EMSESP::system_.ethernet_connected()) { @@ -1808,6 +1809,7 @@ String System::get_ip_or_hostname() { } } }); +#endif return result; }