From 292cf9326b99a970ec850eb8d0c76788f3e8ef1c Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 3 Nov 2018 14:05:01 +0100 Subject: [PATCH] [fix] #42: add back IPv6 format handling. --- silkaj/network_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/silkaj/network_tools.py b/silkaj/network_tools.py index 1af4671b..c715faa6 100644 --- a/silkaj/network_tools.py +++ b/silkaj/network_tools.py @@ -80,6 +80,8 @@ class EndPoint(object): ep["domain"], ep["port"] = cli_args.get_definition('p').rsplit(':', 1) else: ep["domain"], ep["port"] = G1_TEST_DEFAULT_ENDPOINT if cli_args.contains_switches("gtest") else G1_DEFAULT_ENDPOINT + if ep["domain"].startswith('[') and ep["domain"].endswith(']'): + ep["domain"] = ep["domain"][1:-1] self.ep = ep -- GitLab