Skip to content

Commit 305855e

Browse files
committed
if PROXY variable is set there is no need to do a direct connection attempt
1 parent f5d41ff commit 305855e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11463,7 +11463,7 @@ fd_socket() {
1146311463
fi
1146411464
fi
1146511465
# Now comes the usual case
11466-
if ! exec 5<>/dev/tcp/$nodeip/$PORT && [[ -z "$PROXY" ]]; then
11466+
if [[ -z "$PROXY" ]] && ! exec 5<>/dev/tcp/$nodeip/$PORT; then
1146711467
((NR_SOCKET_FAIL++))
1146811468
connectivity_problem $NR_SOCKET_FAIL $MAX_SOCKET_FAIL "TCP connect problem" "repeated TCP connect problems, giving up"
1146911469
outln

0 commit comments

Comments
 (0)