mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Fix a bug: in deciding whenther to print the diff for a port, a port in
host B was being check to see if it was an extraport in host A.
This commit is contained in:
parent
cf5dd5cfd5
commit
f6b10157f7
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ class HostDiff(object):
|
|||
else:
|
||||
if not host_a.is_extraports(port_a.state):
|
||||
port_table.append((u"-", port_a.spec_string(), port_a.state_string(), port_a.service.name_string(), port_a.service.version_string()))
|
||||
if not host_a.is_extraports(port_b.state):
|
||||
if not host_b.is_extraports(port_b.state):
|
||||
port_table.append((u"+", port_b.spec_string(), port_b.state_string(), port_b.service.name_string(), port_b.service.version_string()))
|
||||
|
||||
if len(port_table) > 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue