Skip to content

Commit be95674

Browse files
committed
expand TOR proxies
1 parent 11ee560 commit be95674

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

assets_js_bitrequest_core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ function finish_functions() {
548548
// ** Utility Functions: **
549549
//amountshort
550550
check_params();
551+
const ap = all_proxies(),
552+
all_tor_proxies = filter_object_array(ap, "tor", true),
553+
tor_proxy = random_array_item(all_tor_proxies); // pick tor proxy
554+
glob_let.tor_proxy = tor_proxy;
551555
}
552556

553557
// Updates HTML document language and meta tag attributes based on current language code

assets_js_lib_global_queries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const br_bipobj = br_get_local("bpdat", true),
6363
"ln_socket": "wss://bitrequest.app:8030",
6464
"proxy_list": br_proxy_list,
6565
"hosted_proxy": br_hosted_proxy,
66-
tor_proxy,
6766
"proxy_version": "0.028",
6867
"firebase_dynamic_link_domain": br_firebase_dynamic_link_domain,
6968
"firebase_shortlink": "https://" + br_firebase_dynamic_link_domain + "/",
@@ -227,7 +226,8 @@ const br_bipobj = br_get_local("bpdat", true),
227226
"socket": 0,
228227
"proxy": 0
229228
},
230-
"overflow_detected": false
229+
"overflow_detected": false,
230+
tor_proxy,
231231
}
232232

233233
// Global helpers

0 commit comments

Comments
 (0)