Merge pull request #2261 from osown/3.1dev

if PROXY variable is set there is no need to do a direct connection attempt
This commit is contained in:
Dirk Wetter 2022-11-10 10:52:14 +01:00 committed by GitHub
commit 6716dc7465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11468,7 +11468,7 @@ fd_socket() {
fi
fi
# 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++))
connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up"
outln