mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 04:10:52 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25489 - Newer versions of "`trust-dns-resolver`" are now named "`hickory-resolver`": https://bluejekyll.github.io/blog/posts/announcing-hickory-dns/
12 lines
372 B
Diff
12 lines
372 B
Diff
--- a/src/system_conf/unix.rs
|
|
+++ b/src/system_conf/unix.rs
|
|
@@ -29,7 +29,7 @@ use crate::proto::xfer::Protocol;
|
|
const DEFAULT_PORT: u16 = 53;
|
|
|
|
pub fn read_system_conf() -> Result<(ResolverConfig, ResolverOpts), ResolveError> {
|
|
- read_resolv_conf("/etc/resolv.conf")
|
|
+ read_resolv_conf("@TERMUX_PREFIX@/etc/resolv.conf")
|
|
}
|
|
|
|
fn read_resolv_conf<P: AsRef<Path>>(
|