mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Provides more meaningful information about the connecting client when in UDP listening mode. Closes #980
This commit is contained in:
parent
4fa07fc32b
commit
e8b73078fd
1 changed files with 3 additions and 2 deletions
|
|
@ -898,8 +898,8 @@ static int ncat_listen_dgram(int proto)
|
|||
ncat_log_recv(buf, nbytes);
|
||||
}
|
||||
|
||||
if (o.debug > 1)
|
||||
logdebug("Valid Connection from %d\n", socket_n);
|
||||
if (o.verbose)
|
||||
loguser("Connection from %s.\n", inet_socktop(&remotess));
|
||||
|
||||
conn_inc++;
|
||||
|
||||
|
|
@ -917,6 +917,7 @@ static int ncat_listen_dgram(int proto)
|
|||
struct fdinfo info = { 0 };
|
||||
|
||||
info.fd = socket_n;
|
||||
info.remoteaddr = remotess;
|
||||
if (o.keepopen)
|
||||
netrun(&info, o.cmdexec);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue