From 8b0b802dfd98f634eefeeaeff1806982c35a5df3 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 15 Feb 2023 13:36:20 -0500 Subject: [PATCH] Fixed IPv6 configuration --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 1e70efb..787435b 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -301,7 +301,7 @@ def tweak(): # runs configuration wizard # ssh ip+port configuration _iport = str(input(f"{_divider}example inputs:\n\n ipv4: 10.10.10.10:22\n ipv6: [2000:2000:2000:2000:" f"2000:2000:2000:2000]:22\n domain: mydomain.com:22\n\nip and ssh port of sshyp server: " - )).rsplit(':') + )).lstrip('[').replace(']', '').rsplit(':', 1) # ssh user configuration _username_ssh = str(input('\nusername of the remote server: '))