mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
Fix ncat tests
google.com can resolve to a different set of addresses each time you resolve it, which makes the addrset tests fail. Use scanme.nmap.org instead, since (at least for now) that has only one address assigned.
This commit is contained in:
@@ -228,23 +228,23 @@ ff::00
|
||||
EOF
|
||||
|
||||
# Name lookup.
|
||||
test_addrset "google.com" "google.com" <<EOF
|
||||
test_addrset "scanme.nmap.org" "scanme.nmap.org" <<EOF
|
||||
1:2::3:4
|
||||
1.2.3.4
|
||||
google.com
|
||||
scanme.nmap.org
|
||||
EOF
|
||||
|
||||
# Name lookup combined with CIDR netmask.
|
||||
test_addrset "google.com/30" "google.com" <<EOF
|
||||
test_addrset "scanme.nmap.org/30" "scanme.nmap.org" <<EOF
|
||||
1:2::3:4
|
||||
1.2.3.4
|
||||
google.com
|
||||
scanme.nmap.org
|
||||
EOF
|
||||
|
||||
# Name lookup combined with /0 CIDR netmask.
|
||||
test_addrset "google.com/0" "1.2.3.4 google.com" <<EOF
|
||||
test_addrset "scanme.nmap.org/0" "1.2.3.4 scanme.nmap.org" <<EOF
|
||||
1.2.3.4
|
||||
google.com
|
||||
scanme.nmap.org
|
||||
EOF
|
||||
|
||||
expect_fail "."
|
||||
|
||||
Reference in New Issue
Block a user