summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtor-exit-ssl-check4
1 files changed, 4 insertions, 0 deletions
diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check
index 87a5b00..ed9aaa7 100755
--- a/tor-exit-ssl-check
+++ b/tor-exit-ssl-check
@@ -190,6 +190,10 @@ while : ; do
[ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor" "$tmpdir/cert-direct" || true
echo "RESULT: $server: Connect failed"
errors=1
+ elif egrep '^[0-9]*:error:.*:ssl handshake failure:' "$tmpdir/cert-tor" > /dev/null; then
+ [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor" "$tmpdir/cert-direct" || true
+ echo "RESULT: $server: SSL Handshake failed"
+ errors=1
else
echo "RESULT: $server: differences!"
[ "$verbose" = 0 ] || echo "===="