Merge pull request #108 from codingo/dot-breaks-target-fix

Dot breaks target fix
This commit is contained in:
Michael Skelton
2020-07-29 16:08:27 +10:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
__version__ = '1.8.1'
__version__ = '1.8.2'

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