You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
523 B
16 lines
523 B
diff -uNr proxychains-ng-4.13/src/hostsreader.c proxychains-ng-4.13.mod/src/hostsreader.c
|
|
--- proxychains-ng-4.13/src/hostsreader.c 2018-06-25 02:26:05.000000000 +0300
|
|
+++ proxychains-ng-4.13.mod/src/hostsreader.c 2019-03-05 19:34:06.360468021 +0200
|
|
@@ -16,7 +16,11 @@
|
|
};
|
|
|
|
int hostsreader_open(struct hostsreader *ctx) {
|
|
- if(!(ctx->f = fopen("/etc/hosts", "r"))) return 0;
|
|
+ if(!(ctx->f = fopen("@TERMUX_PREFIX@/etc/hosts", "r"))) {
|
|
+ if(!(ctx->f = fopen("/etc/hosts", "r"))) {
|
|
+ return 0;
|
|
+ }
|
|
+ }
|
|
return 1;
|
|
}
|
|
|
|
|