From f8bb74519dde70e9a58affdaf58399a452c7c475 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 1 Mar 2017 18:33:47 +0100 Subject: [PATCH] make MSYS2 work again ;-) --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index acbeb32..4a03f80 100755 --- a/testssl.sh +++ b/testssl.sh @@ -8113,7 +8113,7 @@ get_a_record() { fi if [[ -z "$ip4" ]]; then if which nslookup &>/dev/null; then - ip4=$(filter_ip4_address "$(nslookup -querytype=a "$1" 2>/dev/null | awk '/^Name/,/EOF/ { print $0 }' | grep -v Name)") + ip4=$(filter_ip4_address "$(nslookup -querytype=a "$1" 2>/dev/null | awk '/^Name/,/EOF/ { print $0 }' | awk '/Address/ { print $NF }')") fi fi OPENSSL_CONF="$saved_openssl_conf" # see https://github.com/drwetter/testssl.sh/issues/134