|
@ -85,7 +85,8 @@ NSLOOKUP=$(command -v nslookup) |
|
|
|
|
|
|
|
|
# Transfer Programs |
|
|
# Transfer Programs |
|
|
WGET=$(command -v wget) |
|
|
WGET=$(command -v wget) |
|
|
WGET_SSL=$(command -v wget-ssl) |
|
|
|
|
|
|
|
|
# SSL support is available if WGET_SSL is not empty |
|
|
|
|
|
WGET_SSL=$("$WGET" -V 2>/dev/null | grep -F +https) |
|
|
|
|
|
|
|
|
CURL=$(command -v curl) |
|
|
CURL=$(command -v curl) |
|
|
# CURL_SSL not empty then SSL support available |
|
|
# CURL_SSL not empty then SSL support available |
|
@ -711,8 +712,8 @@ do_transfer() { |
|
|
[ -z "$bind_network" ] && [ "$ip_source" = "network" ] && [ "$ip_network" ] && bind_network="$ip_network" |
|
|
[ -z "$bind_network" ] && [ "$ip_source" = "network" ] && [ "$ip_network" ] && bind_network="$ip_network" |
|
|
|
|
|
|
|
|
# lets prefer GNU Wget because it does all for us - IPv4/IPv6/HTTPS/PROXY/force IP version |
|
|
# lets prefer GNU Wget because it does all for us - IPv4/IPv6/HTTPS/PROXY/force IP version |
|
|
if [ -n "$WGET_SSL" -a $USE_CURL -eq 0 ]; then # except global option use_curl is set to "1" |
|
|
|
|
|
__PROG="$WGET_SSL --hsts-file=/tmp/.wget-hsts -nv -t 1 -O $DATFILE -o $ERRFILE" # non_verbose no_retry outfile errfile |
|
|
|
|
|
|
|
|
if [ -n "$WGET_SSL" ] && [ $USE_CURL -eq 0 ]; then # except global option use_curl is set to "1" |
|
|
|
|
|
__PROG="$WGET --hsts-file=/tmp/.wget-hsts -nv -t 1 -O $DATFILE -o $ERRFILE" # non_verbose no_retry outfile errfile |
|
|
# force network/ip to use for communication |
|
|
# force network/ip to use for communication |
|
|
if [ -n "$bind_network" ]; then |
|
|
if [ -n "$bind_network" ]; then |
|
|
local __BINDIP |
|
|
local __BINDIP |
|
|