mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 23:04:24 +01:00
Fixed support for , in URL issue
This commit is contained in:
@@ -145,13 +145,12 @@ class InputHelper(object):
|
||||
def _pre_process_hosts(host_ranges, destination_set, arguments):
|
||||
for host in host_ranges:
|
||||
host = host.replace(" ", "")
|
||||
for ips in host.split(","):
|
||||
# check if it is a domain name
|
||||
if ips.split(".")[0][0].isalpha():
|
||||
destination_set.add(ips)
|
||||
if host.split(".")[0][0].isalpha():
|
||||
destination_set.add(host)
|
||||
continue
|
||||
for ips in host.split(","):
|
||||
# checking for CIDR
|
||||
|
||||
if not arguments.nocidr and "/" in ips:
|
||||
destination_set.update(InputHelper._get_cidr_to_ips(ips))
|
||||
# checking for IPs in a range
|
||||
|
||||
Reference in New Issue
Block a user