Merge pull request #81 from codingo/url_fixup

Url fixup
This commit is contained in:
Sajeeb Lohani
2019-10-19 18:26:54 +11:00
committed by GitHub

View File

@@ -147,10 +147,11 @@ class InputHelper(object):
host = host.replace(" ", "") host = host.replace(" ", "")
for ips in host.split(","): for ips in host.split(","):
# check if it is a domain name # check if it is a domain name
if ips.split(".")[-1][0].isalpha(): if ips.split(".")[0][0].isalpha():
destination_set.add(ips) destination_set.add(ips)
continue 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