From c12e77519f16470745a9db07b2220d742a350205 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 22 May 2023 08:29:10 +0200 Subject: [PATCH] interfaces: do not flush nameserver routes we do not add Cleanup would be better but ifctl is not the place for it (no symmetry). Maybe in the future we can use output from # pluginctl -r host_routes to remove the routes safelty as they don't show if not used. PR: https://forum.opnsense.org/index.php?topic=33831.0 --- src/opnsense/scripts/interfaces/ifctl.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/opnsense/scripts/interfaces/ifctl.sh b/src/opnsense/scripts/interfaces/ifctl.sh index 70a913d84..9de17c192 100755 --- a/src/opnsense/scripts/interfaces/ifctl.sh +++ b/src/opnsense/scripts/interfaces/ifctl.sh @@ -39,14 +39,6 @@ flush_routes() fi case ${MD} in - nameserver) - # flush host routes here to make sure they are recycled - # properly although maybe later we need to avoid this - # to not cause an inconsistent routing table state. - for CONTENT in $(cat ${FILE}); do - route delete -${AF} "${CONTENT}" - done - ;; prefix) # flush null route to delegated prefix for CONTENT in $(cat ${FILE}); do