mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
cmd/cli: set running iface for stop/uninstall commands
This commit is contained in:
committed by
Cuong Manh Le
parent
8bcbb9249e
commit
9c2fe8d21f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user