From 305855eef782b4e6dd9e7f870aac64357b654150 Mon Sep 17 00:00:00 2001 From: Tobias Pawelke Date: Wed, 2 Nov 2022 13:19:28 +0100 Subject: [PATCH] if PROXY variable is set there is no need to do a direct connection attempt --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index c069edf..e76c7dd 100755 --- a/testssl.sh +++ b/testssl.sh @@ -11463,7 +11463,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