Files

26 lines
802 B
Diff
Raw Permalink Normal View History

2026-04-23 17:07:55 +08:00
From c9ad304d3e9a40cf58e6d054a3b030cac4ca07d6 Mon Sep 17 00:00:00 2001
From: "Chen.Zhao" <zhao.chen@luxshare-ict.com>
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