mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-07 09:10:57 +01:00
Check proxy connect code
This commit is contained in:
parent
85feae9bf0
commit
f0fa2861e4
@ -1961,6 +1961,13 @@ fd_socket() {
|
||||
echo "CONNECT $NODEIP:$PORT" >&5
|
||||
while true ; do
|
||||
read x <&5
|
||||
if [ "${x%/*}" = "HTTP" ] ; then
|
||||
x=${x#* }
|
||||
if [ "${x%% *}" != "200" ] ; then
|
||||
pr_magenta "Unable to CONNECT via proxy"
|
||||
return 6
|
||||
fi
|
||||
fi
|
||||
if [ "$x" = $'\r' ] ; then
|
||||
break
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user