mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-06 03:52:54 +02:00
output missing proxy support if connect fails
This commit is contained in:
14
testssl.sh
14
testssl.sh
@ -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"
|
||||||
|
Reference in New Issue
Block a user