mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-26 04:09:03 +02:00
Oops, earlier ipv6 patch didn't work if no -r option is specified.
This commit is contained in:
parent
95c9b788a0
commit
918725c485
2
ssh.py
2
ssh.py
@ -26,7 +26,7 @@ def connect(ssh_cmd, rhostport, python):
|
|||||||
portl = []
|
portl = []
|
||||||
|
|
||||||
rhostIsIPv6 = False
|
rhostIsIPv6 = False
|
||||||
if rhostport.count(':') > 1:
|
if (rhostport or '').count(':') > 1:
|
||||||
rhostIsIPv6 = True
|
rhostIsIPv6 = True
|
||||||
if rhostport.count(']') or rhostport.count('['):
|
if rhostport.count(']') or rhostport.count('['):
|
||||||
result = rhostport.split(']')
|
result = rhostport.split(']')
|
||||||
|
Loading…
Reference in New Issue
Block a user