mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
cmd/cli: use powershell to set/reset DNS on Windows
Using netsh command will emit unexpected SOA queries, do not use it. While at it, also ensure that local ipv6 will be added to nameservers list on systems that require ipv6 local listener.
This commit is contained in:
1 parent
e6586fd360
commit
9cbd9b3e44
3 files changed
+41
-63
No files matched your search
@@ -2661,6 +2661,7 @@ func resetDnsTask(p *prog, s service.Service) task {
|
||||
iface = runningIface(s)
|
||||
}
|
||||
if isCtrldInstalled {
|
||||
mainLog.Load().Debug().Msg("restore system DNS settings")
|
||||
resetDnsNoLog(p)
|
||||
}
|
||||
iface = oldIface
|
||||
|
||||
Reference in new issue
Block a user