mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 14:54:21 +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):
|
def _pre_process_hosts(host_ranges, destination_set, arguments):
|
||||||
for host in host_ranges:
|
for host in host_ranges:
|
||||||
host = host.replace(" ", "")
|
host = host.replace(" ", "")
|
||||||
|
# check if it is a domain name
|
||||||
|
if host.split(".")[0][0].isalpha():
|
||||||
|
destination_set.add(host)
|
||||||
|
continue
|
||||||
for ips in host.split(","):
|
for ips in host.split(","):
|
||||||
# check if it is a domain name
|
|
||||||
if ips.split(".")[0][0].isalpha():
|
|
||||||
destination_set.add(ips)
|
|
||||||
continue
|
|
||||||
# checking for CIDR
|
# checking for CIDR
|
||||||
|
|
||||||
if not arguments.nocidr and "/" in ips:
|
if not arguments.nocidr and "/" in ips:
|
||||||
destination_set.update(InputHelper._get_cidr_to_ips(ips))
|
destination_set.update(InputHelper._get_cidr_to_ips(ips))
|
||||||
# checking for IPs in a range
|
# checking for IPs in a range
|
||||||
|
|||||||
Reference in New Issue
Block a user