cmd/cli: set running iface for stop/uninstall commands

This commit is contained in:
Cuong Manh Le
2025-01-14 14:24:27 +07:00
committed by Cuong Manh Le
parent 8bcbb9249e
commit 9c2fe8d21f
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -1767,6 +1767,7 @@ func resetDnsTask(p *prog, s service.Service, isCtrldInstalled bool, currentRunn
if currentRunningIface != "" {
iface = currentRunningIface
}
p.runningIface = iface
if isCtrldInstalled {
mainLog.Load().Debug().Msg("restore system DNS settings")
if status, _ := s.Status(); status == service.StatusRunning {