From 4722033f40b593d42c0f486565089690bb074c67 Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 14 Sep 2018 16:33:09 +0200 Subject: [PATCH] Accept square brackets in supplied IPv6 address --- testssl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testssl.sh b/testssl.sh index 7647f11..f423a3b 100755 --- a/testssl.sh +++ b/testssl.sh @@ -17172,6 +17172,9 @@ parse_cmd_line() { DNS_VIA_PROXY=true unset CMDLINE_IP fi + # normalize any IPv6 address + CMDLINE_IP="${CMDLINE_IP//[/}" + CMDLINE_IP="${CMDLINE_IP//]/}" ;; -n|--nodns|-n=*|--nodns=*) NODNS="$(parse_opt_equal_sign "$1" "$2")"