From 40a069275e66f1208d37efd373d74941e85058c5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 12 Feb 2013 21:20:20 +0000 Subject: feature creep is horrible: support base64 fingerprints git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@584 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- tor-exit-ssl-check | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check index 0e881f5..9112b52 100755 --- a/tor-exit-ssl-check +++ b/tor-exit-ssl-check @@ -165,6 +165,11 @@ while : ; do fi server="${server// /}" + # de-base64 if needed + if [ "$(echo "$server" | wc -c)" = 28 ] ; then + server=$(echo "$server" | perl -MMIME::Base64 -e "print unpack(\"H*\", decode_base64(<>)),\"\n\"") + fi + [ "$verbose" = 0 ] || echo "Setting ExitNodes $server" echo "RESETCONF ExitNodes" >&${COPROC[1]} expect_ok -- cgit v1.2.3