mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 20:09:02 +00:00
Output a LISTEN test message when do_listen is successful.
This commit is contained in:
@@ -468,6 +468,8 @@ int do_listen(int type, int proto, const union sockaddr_u *srcaddr_u)
|
||||
#endif
|
||||
loguser("Listening on %s:%hu\n", inet_socktop(srcaddr_u), inet_port(srcaddr_u));
|
||||
}
|
||||
if (o.test)
|
||||
logtest("LISTEN\n");
|
||||
|
||||
return sock;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user