mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 08:37:14 -04:00
Fixed IPv6 configuration support
Former-commit-id: 729d0009cf43999009d19747d70d87b2ac68b597 Former-commit-id: b48b284c1a811d5c7cb69963388f3eac0c3a1a79
This commit is contained in:
+2
-2
@@ -179,10 +179,10 @@ def ssh_config():
|
|||||||
# ssh+sshync configuration
|
# 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 '
|
_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'
|
'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('@')
|
_uiport_split = _uiport.split('@')
|
||||||
_username_ssh = _uiport_split[0]
|
_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'):
|
if not sshyp_data.has_section('SSHYNC'):
|
||||||
sshyp_data.add_section('SSHYNC')
|
sshyp_data.add_section('SSHYNC')
|
||||||
|
|||||||
Reference in New Issue
Block a user