Check proxy connect code

This commit is contained in:
John Newbigin 2015-06-25 08:51:30 +10:00
parent 85feae9bf0
commit f0fa2861e4

View File

@ -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