output missing proxy support if connect fails

This commit is contained in:
Dirk Wetter
2025-07-03 23:01:59 +02:00
parent 38a44ab89a
commit d85c65e3b2

View File

@ -6141,16 +6141,17 @@ run_protocols() {
sub_quic() { sub_quic() {
local alpn="" local alpn=""
local use_openssl="" local use_openssl=""
local proxy_hint_str=""
local sclient_outfile="$TEMPDIR/$NODEIP.quic_connect.txt" local sclient_outfile="$TEMPDIR/$NODEIP.quic_connect.txt"
local sclient_errfile="$TEMPDIR/$NODEIP.quic_connect_err.txt" local sclient_errfile="$TEMPDIR/$NODEIP.quic_connect_err.txt"
local jsonID="QUIC" local jsonID="QUIC"
pr_bold " QUIC ";
[[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null [[ $DEBUG -ne 0 ]] && sclient_errfile=/dev/null
pr_bold " QUIC ";
if "$HAS2_QUIC" || "$HAS_QUIC"; then 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 # The s_client call would block if either the remote side doesn't support QUIC or outbound traffic is blocked
if "$HAS2_QUIC"; then if "$HAS2_QUIC"; then
use_openssl="$OPENSSL2" use_openssl="$OPENSSL2"
@ -6161,8 +6162,11 @@ sub_quic() {
2>$sclient_errfile >$sclient_outfile & 2>$sclient_errfile >$sclient_outfile &
wait_kill $! $QUIC_WAIT wait_kill $! $QUIC_WAIT
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
outln "not offered" if [[ -n "$PROXY" ]]; then
fileout "$jsonID" "INFO" "not offered" 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 else
pr_svrty_best "offered (OK)" pr_svrty_best "offered (OK)"
fileout "$jsonID" "OK" "offered" fileout "$jsonID" "OK" "offered"