Skip to content

Commit d85c65e

Browse files
committed
output missing proxy support if connect fails
1 parent 38a44ab commit d85c65e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

testssl.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6141,16 +6141,17 @@ run_protocols() {
61416141
sub_quic() {
61426142
local alpn=""
61436143
local use_openssl=""
6144+
local proxy_hint_str=""
61446145
local sclient_outfile="$TEMPDIR/$NODEIP.quic_connect.txt"
61456146
local sclient_errfile="$TEMPDIR/$NODEIP.quic_connect_err.txt"
61466147
local jsonID="QUIC"
61476148

6148-
pr_bold " QUIC ";
6149-
61506149
[[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null
61516150

6151+
pr_bold " QUIC ";
6152+
61526153
if "$HAS2_QUIC" || "$HAS_QUIC"; then
6153-
# Be aware: A proxy is not supported at all
6154+
# Proxying QUIC is not supported
61546155
# The s_client call would block if either the remote side doesn't support QUIC or outbound traffic is blocked
61556156
if "$HAS2_QUIC"; then
61566157
use_openssl="$OPENSSL2"
@@ -6161,8 +6162,11 @@ sub_quic() {
61616162
2>$sclient_errfile >$sclient_outfile &
61626163
wait_kill $! $QUIC_WAIT
61636164
if [[ $? -ne 0 ]]; then
6164-
outln "not offered"
6165-
fileout "$jsonID" "INFO" "not offered"
6165+
if [[ -n "$PROXY" ]]; then
6166+
proxy_hint_str="(tried directly, is not proxyable):"
6167+
fi
6168+
outln "$proxy_hint_str not offered or timed out"
6169+
fileout "$jsonID" "INFO" "$proxy_hint_str not offered"
61666170
else
61676171
pr_svrty_best "offered (OK)"
61686172
fileout "$jsonID" "OK" "offered"

0 commit comments

Comments
 (0)