Fixed support for , in URL issue

This commit is contained in:
prodigysml
2019-10-19 18:44:49 +11:00
parent 8cb6eced2e
commit fd2337826f

View File

@@ -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