added no proxy command line option

This commit is contained in:
2021-09-15 14:42:05 +02:00
parent 3a9dd52098
commit 9e8a2a3e0c
3 changed files with 6 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ load_configuration
process_commandline_and_vars
# Declare proxy system vars if needed and if not already declared
if [[ -n $PROXYSRV && -n $PROXYSRVPORT ]]; then
if [[ -n $PROXYSRV && -n $PROXYSRVPORT && -z $NO_PROXY ]]; then
export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
fi