Edited to fix the dot problem

This commit is contained in:
prodigysml
2020-07-29 02:52:29 +00:00
parent 139f5ced81
commit 8bec88b819

View File

@@ -149,6 +149,10 @@ class InputHelper(object):
for host in host_ranges:
host = host.replace(" ", "").replace("\n", "")
# check if it is a domain name
if len(host.split(".")[0]) == 0:
destination_set.add(host)
continue
if host.split(".")[0][0].isalpha() or host.split(".")[-1][-1].isalpha():
destination_set.add(host)
continue