mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 07:14:20 +01:00
Fixed the errors for ports and exclusions
This commit is contained in:
@@ -66,6 +66,7 @@ class InputHelper(object):
|
|||||||
final_commands = set()
|
final_commands = set()
|
||||||
output = OutputHelper(arguments)
|
output = OutputHelper(arguments)
|
||||||
|
|
||||||
|
if arguments.port:
|
||||||
if "," in arguments.port:
|
if "," in arguments.port:
|
||||||
ports = arguments.port.split(",")
|
ports = arguments.port.split(",")
|
||||||
elif "-" in arguments.port:
|
elif "-" in arguments.port:
|
||||||
@@ -86,6 +87,7 @@ class InputHelper(object):
|
|||||||
if arguments.exclusions:
|
if arguments.exclusions:
|
||||||
exclusions_ranges.add(arguments.exclusions)
|
exclusions_ranges.add(arguments.exclusions)
|
||||||
else:
|
else:
|
||||||
|
if arguments.exclusions_list:
|
||||||
for exclusion in arguments.exclusions_list:
|
for exclusion in arguments.exclusions_list:
|
||||||
exclusions_ranges.add(target.strip())
|
exclusions_ranges.add(target.strip())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user