if PROXY variable is set there is no need to do a direct connection attempt

This commit is contained in:
Tobias Pawelke 2022-11-02 13:19:28 +01:00
parent f5d41ff26f
commit 305855eef7
1 changed files with 1 additions and 1 deletions

View File

@ -11463,7 +11463,7 @@ fd_socket() {
fi fi
fi fi
# Now comes the usual case # Now comes the usual case
if ! exec 5<>/dev/tcp/$nodeip/$PORT && [[ -z "$PROXY" ]]; then if [[ -z "$PROXY" ]] && ! exec 5<>/dev/tcp/$nodeip/$PORT; then
((NR_SOCKET_FAIL++)) ((NR_SOCKET_FAIL++))
connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up" connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up"
outln outln