From 800a1181f810155c241e6a569c2d40b811e9a96e Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 16 Jan 2023 19:16:49 -0500 Subject: [PATCH] Correctly split in IP configuration instead of strip Former-commit-id: b72de4eefa64e5f871076f8c633512ecd86c7a3d [formerly 5efc2d8a2164f5125e304a64e52ab55a932570b3] Former-commit-id: 6ab008a6779650acb839d54defc7d33f16d9d243 --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 1d2cced..eb77ad7 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: " - )).rstrip(':') + )).rsplit(':') # ssh user configuration _username_ssh = str(input('\nusername of the remote server: '))