0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/findomain/trust-dns-resolver.diff
2023-01-24 11:38:40 +00:00

12 lines
384 B
Diff

--- a/src/system_conf/unix.rs
+++ b/src/system_conf/unix.rs
@@ -27,7 +27,7 @@
const DEFAULT_PORT: u16 = 53;
pub fn read_system_conf() -> io::Result<(ResolverConfig, ResolverOpts)> {
- read_resolv_conf("/etc/resolv.conf")
+ read_resolv_conf("@TERMUX_PREFIX@/etc/resolv.conf")
}
fn read_resolv_conf<P: AsRef<Path>>(path: P) -> io::Result<(ResolverConfig, ResolverOpts)> {