mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Make nsock test suite listeners listen on IPv4
Do everything explicitely to avoid unexpected behaviors. IPv6 will be added separately at some point.
This commit is contained in:
parent
1154495aa3
commit
b0abceec37
1 changed files with 3 additions and 3 deletions
|
|
@ -42,19 +42,19 @@ fi
|
|||
|
||||
|
||||
function setup_echo_udp() {
|
||||
$NCAT -l --udp --sh-exec cat localhost $PORT_UDP &
|
||||
$NCAT -l --udp --sh-exec cat 127.0.0.1 $PORT_UDP &
|
||||
pid_udp=$!
|
||||
echo "started UDP listener on port $PORT_UDP (pid $pid_udp)"
|
||||
}
|
||||
|
||||
function setup_echo_tcp() {
|
||||
$NCAT -l --keep-open --sh-exec cat localhost $PORT_TCP &
|
||||
$NCAT -l --keep-open --sh-exec cat 127.0.0.1 $PORT_TCP &
|
||||
pid_tcp=$!
|
||||
echo "started TCP listener on port $PORT_TCP (pid $pid_tcp)"
|
||||
}
|
||||
|
||||
function setup_echo_tcpssl() {
|
||||
$NCAT -l --ssl --keep-open --sh-exec cat localhost $PORT_TCPSSL &
|
||||
$NCAT -l --ssl --keep-open --sh-exec cat 127.0.0.1 $PORT_TCPSSL &
|
||||
pid_tcpssl=$!
|
||||
echo "started TCP SSL listener on port $PORT_TCPSSL (pid $pid_tcpssl)"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue