From c9ad304d3e9a40cf58e6d054a3b030cac4ca07d6 Mon Sep 17 00:00:00 2001 From: "Chen.Zhao" Date: Fri, 9 May 2025 09:40:16 +0800 Subject: [PATCH] Fix the issue where the gateway configuration is not taking effect --- src/ethernet_interface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ethernet_interface.cpp b/src/ethernet_interface.cpp index 126255c..82e70a2 100644 --- a/src/ethernet_interface.cpp +++ b/src/ethernet_interface.cpp @@ -891,6 +891,7 @@ std::string EthernetInterface::defaultGateway(std::string gateway) if (gateway != defaultGateway()) { gateway = EthernetInterfaceIntf::defaultGateway(std::move(gateway)); + writeConfigurationFile(); manager.get().reloadConfigs(); } return gateway; -- 2.25.1