mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 14:54:21 +01:00
Fix for IP address detection
This commit is contained in:
@@ -144,9 +144,9 @@ class InputHelper(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
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(" ", "").replace("\n", "")
|
||||||
# check if it is a domain name
|
# check if it is a domain name
|
||||||
if host.split(".")[0][0].isalpha():
|
if host.split(".")[0][0].isalpha() or host.split(".")[-1][-1].isalpha():
|
||||||
destination_set.add(host)
|
destination_set.add(host)
|
||||||
continue
|
continue
|
||||||
for ips in host.split(","):
|
for ips in host.split(","):
|
||||||
|
|||||||
Reference in New Issue
Block a user