1
0
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:
dmiller
2014-08-02 04:38:02 +00:00
parent 59562d1c50
commit e7cd3a7f1e

View File

@@ -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 "."