summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtor-exit-ssl-check5
1 files changed, 5 insertions, 0 deletions
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