diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-08-18 18:40:12 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-08-18 18:40:12 +0000 |
commit | 5a2d3abe9e1b7d44ee0a97a73946a1e5e0149efc (patch) | |
tree | 623d9081d1839f92026335799948568fecb69089 /tor-exit-ssl-check | |
parent | ba5e88fc47b262aa66c153c9b82ffa0933682e70 (diff) |
reverse diff order
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@642 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'tor-exit-ssl-check')
-rwxr-xr-x | tor-exit-ssl-check | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check index 0d7e6a9..31f8ebe 100755 --- a/tor-exit-ssl-check +++ b/tor-exit-ssl-check @@ -225,22 +225,22 @@ while : ; do egrep -v '(Session-ID:|Master-Key:|Start Time:|SSL handshake has read)' < "$tmpdir/cert-tor-$i" > "$tmpdir/cert-tor-$i.filtered" - if diff "$tmpdir/cert-tor-$i.filtered" "$tmpdir/cert-direct-$i.filtered" > /dev/null; then + if diff "$tmpdir/cert-direct-$i.filtered" "$tmpdir/cert-tor-$i.filtered" > /dev/null; then echo "RESULT[$host]: $server: No real differences." - [ "$verbose" = 0 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true + [ "$verbose" = 0 ] || diff -U100 "$tmpdir/cert-direct-$i" "$tmpdir/cert-tor-$i" || true elif egrep '^connect:errno=' "$tmpdir/cert-tor-$i" > /dev/null; then - [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true + [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-direct-$i" "$tmpdir/cert-tor-$i" || true echo "RESULT[$host]: $server: Connect failed" errors=$((errors | 0x02)) elif egrep '^[0-9]*:error:.*:ssl handshake failure:' "$tmpdir/cert-tor-$i" > /dev/null; then - [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true + [ "$verbose" -lt 1 ] || diff -U100 "$tmpdir/cert-direct-$i" "$tmpdir/cert-tor-$i" || true echo "RESULT[$host]: $server: SSL Handshake failed" errors=$((errors | 0x04)) else echo "RESULT[$host]: $server: differences!" [ "$verbose" = 0 ] || echo "====" [ "$verbose" = 0 ] || echo "Diff:" - diff -U100 "$tmpdir/cert-tor-$i" "$tmpdir/cert-direct-$i" || true + diff -U100 "$tmpdir/cert-direct-$i" "$tmpdir/cert-tor-$i" || true errors=$((errors | 0x08)) fi done |