|
|
@ -1,19 +1,7 @@ |
|
|
|
diff -uNr tor-0.3.1.8/src/or/dns.c tor-0.3.1.8.mod/src/or/dns.c
|
|
|
|
--- tor-0.3.1.8/src/or/dns.c 2017-06-19 18:56:51.000000000 +0300
|
|
|
|
+++ tor-0.3.1.8.mod/src/or/dns.c 2017-11-10 18:05:46.220054396 +0200
|
|
|
|
@@ -1349,7 +1349,7 @@
|
|
|
|
conf_fname = options->ServerDNSResolvConfFile; |
|
|
|
#ifndef _WIN32 |
|
|
|
if (!conf_fname) |
|
|
|
- conf_fname = "/etc/resolv.conf";
|
|
|
|
+ conf_fname = "@TERMUX_PREFIX@/etc/resolv.conf";
|
|
|
|
#endif |
|
|
|
flags = DNS_OPTIONS_ALL; |
|
|
|
|
|
|
|
diff -uNr tor-0.3.1.8/src/or/main.c tor-0.3.1.8.mod/src/or/main.c
|
|
|
|
--- tor-0.3.1.8/src/or/main.c 2017-09-29 01:52:51.000000000 +0300
|
|
|
|
+++ tor-0.3.1.8.mod/src/or/main.c 2017-11-10 18:02:56.257471811 +0200
|
|
|
|
@@ -3472,7 +3472,7 @@
|
|
|
|
diff -u -r ../tor-0.3.5.7/src/app/main/main.c ./src/app/main/main.c
|
|
|
|
--- ../tor-0.3.5.7/src/app/main/main.c 2018-12-18 18:56:22.000000000 +0000
|
|
|
|
+++ ./src/app/main/main.c 2019-01-10 20:29:38.187975263 +0000
|
|
|
|
@@ -1044,7 +1044,7 @@
|
|
|
|
OPEN("/dev/srandom"); |
|
|
|
OPEN("/dev/urandom"); |
|
|
|
OPEN("/dev/random"); |
|
|
@ -22,7 +10,7 @@ diff -uNr tor-0.3.1.8/src/or/main.c tor-0.3.1.8.mod/src/or/main.c |
|
|
|
OPEN("/proc/meminfo"); |
|
|
|
|
|
|
|
if (options->BridgeAuthoritativeDir) |
|
|
|
@@ -3485,7 +3485,7 @@
|
|
|
|
@@ -1057,7 +1057,7 @@
|
|
|
|
sandbox_cfg_allow_open_filename(&cfg, |
|
|
|
tor_strdup(options->ServerDNSResolvConfFile)); |
|
|
|
else |
|
|
@ -31,7 +19,7 @@ diff -uNr tor-0.3.1.8/src/or/main.c tor-0.3.1.8.mod/src/or/main.c |
|
|
|
|
|
|
|
for (i = 0; i < 2; ++i) { |
|
|
|
if (get_torrc_fname(i)) { |
|
|
|
@@ -3631,7 +3631,7 @@
|
|
|
|
@@ -1223,7 +1223,7 @@
|
|
|
|
OPEN_DATADIR_SUFFIX("hashed-fingerprint", ".tmp"); |
|
|
|
OPEN_DATADIR_SUFFIX("router-stability", ".tmp"); |
|
|
|
|
|
|
@ -39,4 +27,4 @@ diff -uNr tor-0.3.1.8/src/or/main.c tor-0.3.1.8.mod/src/or/main.c |
|
|
|
+ OPEN("@TERMUX_PREFIX@/etc/resolv.conf");
|
|
|
|
|
|
|
|
RENAME_SUFFIX("fingerprint", ".tmp"); |
|
|
|
RENAME_SUFFIX2("keys", "secret_onion_key_ntor", ".tmp"); |
|
|
|
RENAME_KEYDIR_SUFFIX("secret_onion_key_ntor", ".tmp"); |