mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
59562d1c50
commit
e7cd3a7f1e
1 changed files with 6 additions and 6 deletions
|
|
@ -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 "."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue