Skip to content

Commit 08a430e

Browse files
authored
Merge pull request #2531 from drwetter/fix_ipv6_ula_and_more-3.0
Fix IPv6 addresses (3.0)
2 parents 4f9bfbc + 33993d4 commit 08a430e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18165,9 +18165,9 @@ get_aaaa_record() {
1816518165
elif "$HAS_HOST"; then
1816618166
ip6=$(filter_ip6_address $(host -t aaaa "$1" | awk '/address/ { print $NF }'))
1816718167
elif "$HAS_DRILL"; then
18168-
ip6=$(filter_ip6_address $(drill aaaa "$1" | awk '/ANSWER SECTION/,/AUTHORITY SECTION/ { print $NF }' | awk '/^[0-9]/'))
18168+
ip6=$(filter_ip6_address $(drill aaaa "$1" | awk '/ANSWER SECTION/,/AUTHORITY SECTION/ { print $NF }' | awk '/^[a-f0-9]/'))
1816918169
elif "$HAS_DIG"; then
18170-
ip6=$(filter_ip6_address $(dig $DIG_R +short +timeout=2 +tries=2 $noidnout -t aaaa "$1" 2>/dev/null | awk '/^[0-9]/ { print $1 }'))
18170+
ip6=$(filter_ip6_address $(dig $DIG_R +short +timeout=2 +tries=2 $noidnout -t aaaa "$1" 2>/dev/null | awk '/^[a-f0-9]/ { print $1 }'))
1817118171
elif "$HAS_NSLOOKUP"; then
1817218172
ip6=$(filter_ip6_address $(strip_lf "$(nslookup -type=aaaa "$1" 2>/dev/null | awk '/'"^${a}"'.*AAAA/ { print $NF }')"))
1817318173
fi

0 commit comments

Comments
 (0)