From bdac3a626e0a9f9cf901a1fd1a1224661fb127bf Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Wed, 3 Apr 2019 19:05:51 +0100 Subject: [PATCH] fix remove chars --- home.admin/config.scripts/internet.sshtunnel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home.admin/config.scripts/internet.sshtunnel.py b/home.admin/config.scripts/internet.sshtunnel.py index fd56dbe..e5be79a 100755 --- a/home.admin/config.scripts/internet.sshtunnel.py +++ b/home.admin/config.scripts/internet.sshtunnel.py @@ -90,7 +90,8 @@ if sys.argv[1] == "on": sys.exit(1) # get ports - ports = re.sub('"','', sys.argv[i] ).split("<") + sys.argv[i] = re.sub('"','', sys.argv[i] ) + ports = sys.argv[i].split("<") port_internal = ports[0] port_external = ports[1] if port_internal.isdigit() == False: