mirror of
https://github.com/nmap/nmap.git
synced 2026-08-30 05:37:05 +00:00
Close some sockets that ncat-test.pl open itself.
I was getting intermittent "address already in use" errors.
This commit is contained in:
parent
43f364de1a
commit
623b3b9ae4
1 changed files with 3 additions and 0 deletions
|
|
@ -1485,6 +1485,7 @@ sub {
|
|||
accept(S, SOCK) or die;
|
||||
my ($port, $addr) = sockaddr_in(getpeername(S));
|
||||
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
|
||||
close(S);
|
||||
};
|
||||
kill_children;
|
||||
|
||||
|
|
@ -1505,6 +1506,7 @@ sub {
|
|||
accept(S, SOCK) or die;
|
||||
my ($port, $addr) = sockaddr_in(getpeername(S));
|
||||
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
|
||||
close(S);
|
||||
};
|
||||
kill_children;
|
||||
|
||||
|
|
@ -1525,6 +1527,7 @@ sub {
|
|||
accept(S, SOCK) or die;
|
||||
my ($port, $addr) = sockaddr_in(getpeername(S));
|
||||
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
|
||||
close(S);
|
||||
};
|
||||
kill_children;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue