0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 13:03:31 +00:00
2023-12-13 17:47:08 +08:00

25 lines
1.2 KiB
Diff

diff --git a/main.go b/main.go
index 553961a..31ef2f8 100644
--- a/main.go
+++ b/main.go
@@ -332,8 +332,8 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation
opts.Server[0] = os.Getenv(defaultServerVar)
log.Debugf("Using %s from %s environment variable", opts.Server, defaultServerVar)
} else {
- log.Debugf("No server specified or %s set, using /etc/resolv.conf", defaultServerVar)
- conf, err := dns.ClientConfigFromFile("/etc/resolv.conf")
+ log.Debugf("No server specified or %s set, using @TERMUX_PREFIX@/etc/resolv.conf", defaultServerVar)
+ conf, err := dns.ClientConfigFromFile("@TERMUX_PREFIX@/etc/resolv.conf")
if err != nil {
opts.Server[0] = "https://cloudflare-dns.com/dns-query"
log.Debugf("no server set, using %s", opts.Server)
@@ -343,7 +343,7 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation
log.Debugf("no server set, using %s", opts.Server)
} else {
opts.Server[0] = conf.Servers[0]
- log.Debugf("found server %s from /etc/resolv.conf", opts.Server)
+ log.Debugf("found server %s from @TERMUX_PREFIX@/etc/resolv.conf", opts.Server)
}
}
}