From f0fa2861e4aeb381e7023d6aaa9380f1e6110cd5 Mon Sep 17 00:00:00 2001 From: John Newbigin Date: Thu, 25 Jun 2015 08:51:30 +1000 Subject: [PATCH] Check proxy connect code --- testssl.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testssl.sh b/testssl.sh index 9f3d7ee..42dc916 100755 --- a/testssl.sh +++ b/testssl.sh @@ -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