mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix a bug I found by reading Daniel Roethlisberger's article at
http://www.linux-magazin.de/Heft-Abo/Ausgaben/2009/06/Alles-inklusive/(offset)/4. Don't print a "Not shown: " line if there were no extraports.
This commit is contained in:
parent
35eb7f1137
commit
6e25eff176
1 changed files with 4 additions and 3 deletions
|
|
@ -491,12 +491,13 @@ class HostDiff(object):
|
|||
|
||||
# Extraports.
|
||||
if self.extraports_changed:
|
||||
if host_a.state is not None:
|
||||
if len(host_a.extraports) > 0:
|
||||
print >> f, u"-Not shown: %s" % host_a.extraports_string()
|
||||
if host_b.state is not None:
|
||||
if len(host_b.extraports) > 0:
|
||||
print >> f, u"+Not shown: %s" % host_b.extraports_string()
|
||||
elif verbose:
|
||||
print >> f, u" Not shown: %s" % host_a.extraports_string()
|
||||
if len(host_a.extraports) > 0:
|
||||
print >> f, u" Not shown: %s" % host_a.extraports_string()
|
||||
|
||||
# Port table.
|
||||
port_table = Table(u"** * * *")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue