Oops, earlier ipv6 patch didn't work if no -r option is specified.

This commit is contained in:
Avery Pennarun 2010-12-09 19:19:15 -08:00
parent 95c9b788a0
commit 918725c485

2
ssh.py
View File

@ -26,7 +26,7 @@ def connect(ssh_cmd, rhostport, python):
portl = []
rhostIsIPv6 = False
if rhostport.count(':') > 1:
if (rhostport or '').count(':') > 1:
rhostIsIPv6 = True
if rhostport.count(']') or rhostport.count('['):
result = rhostport.split(']')