From 1040a6f2ed61f6b13315eb7a97bfa672143ffda4 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 3 Jun 2023 01:34:51 -0400 Subject: [PATCH] Fixed IPv6 configuration support Former-commit-id: 729d0009cf43999009d19747d70d87b2ac68b597 Former-commit-id: b48b284c1a811d5c7cb69963388f3eac0c3a1a79 --- lib/stweak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index ce1f32f..9939fef 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -179,10 +179,10 @@ def ssh_config(): # ssh+sshync configuration _uiport = curses_text('enter the username, ip, and ssh port of your sshyp server:\n\n\n\n\n(ctrl+g/enter to ' 'confirm)\n\nexample inputs:\n\n ipv4: user@10.10.10.10:22\n ipv6: user@[2000:2000:2000:2000' - ':2000:2000:2000:2000]:22\n domain: user@mydomain.com:22').lstrip('[').replace(']', '') + ':2000:2000:2000:2000]:22\n domain: user@mydomain.com:22') _uiport_split = _uiport.split('@') _username_ssh = _uiport_split[0] - _iport = _uiport_split[1].rsplit(':', 1) + _iport = _uiport_split[1].lstrip('[').replace(']', '').rsplit(':', 1) if not sshyp_data.has_section('SSHYNC'): sshyp_data.add_section('SSHYNC')