don't overwrite OS resolver nameservers if there arent any

This commit is contained in:
Alex
2025-02-06 16:12:10 -05:00
committed by Cuong Manh Le
parent fef85cadeb
commit 917052723d
4 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ func (p *prog) preRun() {
func (p *prog) postRun() {
if !service.Interactive() {
p.resetDNS()
ns := ctrld.InitializeOsResolver()
ns := ctrld.InitializeOsResolver(false)
mainLog.Load().Debug().Msgf("initialized OS resolver with nameservers: %v", ns)
p.setDNS()
p.csSetDnsDone <- struct{}{}