mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 17:09:02 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user