mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-27 22:20:31 +00:00
14 lines
652 B
Diff
14 lines
652 B
Diff
diff --git a/main.go b/main.go
|
|
index ef493c4..4f58668 100644
|
|
--- a/main.go
|
|
+++ b/main.go
|
|
@@ -504,7 +504,7 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation
|
|
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")
|
|
+ conf, err := dns.ClientConfigFromFile("@TERMUX_PREFIX@/etc/resolv.conf")
|
|
if err != nil {
|
|
opts.Server = "https://cloudflare-dns.com/dns-query"
|
|
log.Debugf("no server set, using %s", opts.Server)
|