mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-08 09:40: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
|
echo "CONNECT $NODEIP:$PORT" >&5
|
||||||
while true ; do
|
while true ; do
|
||||||
read x <&5
|
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
|
if [ "$x" = $'\r' ] ; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user