mirror of
https://github.com/containers/podman.git
synced 2026-10-04 09:15:27 -04:00
nc -p considered harmful
nmap-ncat has been downgraded on Fedora, to 7.92. nc -l -p PORT requires 7.95. Switch to nc -l ADDR PORT. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
1 parent
599967bf9f
commit
7100ead475
1 file changed
+1
-1
@@ -760,7 +760,7 @@ nameserver 8.8.8.8" "nameserver order is correct"
|
||||
cid="$output"
|
||||
|
||||
# make sure binding the same port fails
|
||||
run timeout 5 nc -l -p $port 127.0.0.1
|
||||
run timeout 5 nc -l 127.0.0.1 $port
|
||||
assert "$status" -eq 2 "ncat unexpected exit code"
|
||||
assert "$output" =~ "127.0.0.1:$port: Address already in use" "ncat error message"
|
||||
|
||||
|
||||
Reference in new issue
Block a user