From 7034a09e090f4aef78a587041ac33f9d6ba4ff7e Mon Sep 17 00:00:00 2001 From: Ira Lun Date: Mon, 12 Oct 2020 04:56:54 +0100 Subject: [PATCH 1/2] Accept hostname targets that do not contain a period. This fixes issue #123, which was due to a misinterpretation of the line `if host.split(".")[0][0].isalpha() or host.split(".")[-1][-1].isalpha():` (see commit 8d46d1473111bfe3aba1e9a6e8a6bd39abbacf06, L156). Because of how Python's str.split() works, a hostname that does not contain a period when .split(".") results in a single-item list, so this expression evaluates to True. However, this also means that the .split()s had no effect: the line was equivalent to `if host[0].isalpha() or host[-1].isalpha()`. --- Interlace/lib/core/input.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Interlace/lib/core/input.py b/Interlace/lib/core/input.py index 3b965c2..51b6c98 100644 --- a/Interlace/lib/core/input.py +++ b/Interlace/lib/core/input.py @@ -187,10 +187,7 @@ class InputHelper(object): for target_spec in target_specs: if ( target_spec.startswith(".") or - ( - (target_spec[0].isalpha() or target_spec[-1].isalpha()) - and "." in target_spec - ) or + (target_spec[0].isalpha() or target_spec[-1].isalpha()) or (nocidr and "/" in target_spec) ): str_targets.add(target_spec) From f2e0a2b39e7c26f1d2a0fba25e2f041a9513a391 Mon Sep 17 00:00:00 2001 From: prodigysml Date: Mon, 26 Oct 2020 20:06:16 +1100 Subject: [PATCH 2/2] Incremented version --- Interlace/lib/core/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interlace/lib/core/__version__.py b/Interlace/lib/core/__version__.py index e5102d3..35424e8 100644 --- a/Interlace/lib/core/__version__.py +++ b/Interlace/lib/core/__version__.py @@ -1 +1 @@ -__version__ = '1.9.0' +__version__ = '1.9.1'