Merge pull request #142 into master
7c46719 container: finance: lib_fetch: fix Tor plugin (proxychains) check (Aaron Fiore)
This commit was merged in pull request #142.
This commit is contained in:
@@ -834,8 +834,10 @@ function lib_fetch::__fetch_exec()
|
||||
[[ "$global_arg_tor" =~ ^on$|^true$ ]] && _exec+=("proxychains") # Wrap with proxychains
|
||||
|
||||
# Test for Tor plugin
|
||||
if ! "${_exec[@]}" curl -s "https://check.torproject.org" &>/dev/null; then
|
||||
lib_utils::die_fatal "Tor plugin not started (or needs restart)"
|
||||
if [ ! -z "${_exec[*]}" ]; then
|
||||
if ! "${_exec[@]}" curl -s "https://check.torproject.org" &>/dev/null; then
|
||||
lib_utils::die_fatal "Tor plugin not started (or needs restart)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# TODO: remove no-limit after internal fetching writes per-paginated instead of per-fetch
|
||||
|
||||
Reference in New Issue
Block a user