mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 23:04:24 +01:00
Added in dash (-) notation for ports
This commit is contained in:
@@ -64,7 +64,11 @@ class InputHelper(object):
|
||||
final_commands = set()
|
||||
output = OutputHelper(arguments)
|
||||
|
||||
ports = arguments.port.split(",")
|
||||
if "," in arguments.port:
|
||||
ports = arguments.port.split(",")
|
||||
elif "-" in arguments.port:
|
||||
tmp_ports = arguments.port.split("-")
|
||||
ports = list(range(int(tmp_ports[0]), int(tmp_ports[1]) + 1))
|
||||
|
||||
# process targets first
|
||||
if arguments.target:
|
||||
|
||||
Reference in New Issue
Block a user