Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Fix UDP scan (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik authored Sep 26, 2017
1 parent 6911f12 commit 7d95d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scans/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def run_scan(self, nodes, scanners, scan, protocol=PROTOCOL, scan_only=Fal
for scanner in scanners[ip_protocol]:
log.info("Scanning %i %s %s nodes for open ports.", len(dict_nodes[ip_protocol]), protocol.name,
ip_protocol)
if protocol.name == TransportProtocol.UDP:
if protocol == TransportProtocol.UDP:
ports.extend(await scanner.scan_ports(dict_nodes[ip_protocol]))
else:
for node in dict_nodes[ip_protocol]:
Expand Down

0 comments on commit 7d95d8b

Please sign in to comment.