From d85c65e3b2320ad3442b2fe59f0267ef6b49a1ec Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Thu, 3 Jul 2025 23:01:59 +0200 Subject: [PATCH] output missing proxy support if connect fails --- testssl.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/testssl.sh b/testssl.sh index 5391e91..9755ae5 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6141,16 +6141,17 @@ run_protocols() { sub_quic() { local alpn="" local use_openssl="" + local proxy_hint_str="" local sclient_outfile="$TEMPDIR/$NODEIP.quic_connect.txt" local sclient_errfile="$TEMPDIR/$NODEIP.quic_connect_err.txt" local jsonID="QUIC" - pr_bold " QUIC "; - [[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null + pr_bold " QUIC "; + if "$HAS2_QUIC" || "$HAS_QUIC"; then - # Be aware: A proxy is not supported at all + # Proxying QUIC is not supported # The s_client call would block if either the remote side doesn't support QUIC or outbound traffic is blocked if "$HAS2_QUIC"; then use_openssl="$OPENSSL2" @@ -6161,8 +6162,11 @@ sub_quic() { 2>$sclient_errfile >$sclient_outfile & wait_kill $! $QUIC_WAIT if [[ $? -ne 0 ]]; then - outln "not offered" - fileout "$jsonID" "INFO" "not offered" + if [[ -n "$PROXY" ]]; then + proxy_hint_str="(tried directly, is not proxyable):" + fi + outln "$proxy_hint_str not offered or timed out" + fileout "$jsonID" "INFO" "$proxy_hint_str not offered" else pr_svrty_best "offered (OK)" fileout "$jsonID" "OK" "offered"