TOR first, fixed when OFF, small tweaks

This commit is contained in:
kexkey
2019-11-08 16:50:54 -05:00
committed by kexkey
parent 58b80e1d3b
commit 96f6301282
8 changed files with 43 additions and 36 deletions

View File

@@ -56,7 +56,8 @@ curl_it() {
local response
local rnd=$(dd if=/dev/urandom bs=5 count=1 | xxd -pc 5)
if [ "${torbypass}" = "true" ]; then
if [ "${torbypass}" = "true" ] || [ ! -f "curlcfg" ]; then
# If we want to bypass tor or the config file doesn't exist
torbypass=""
else
torbypass="-K curlcfg"