From 64e7484ca2c3648f78d2d1f3a51b36dbcc63ff1f Mon Sep 17 00:00:00 2001 From: Sajeeb Lohani Date: Sun, 3 Nov 2019 20:11:35 +1100 Subject: [PATCH] Fix for IP address detection --- Interlace/lib/core/input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index d7386c6..a8a7b32 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -144,9 +144,9 @@ class InputHelper(object): @staticmethod def _pre_process_hosts(host_ranges, destination_set, arguments): for host in host_ranges: - host = host.replace(" ", "") + host = host.replace(" ", "").replace("\n", "") # 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) continue for ips in host.split(","):