diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-12-09 19:19:15 -0800 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-12-09 19:20:01 -0800 |
commit | 918725c4857f8b6fc31813354ba29e152a83b751 (patch) | |
tree | 949631aaaf6c5dbf7cc49b08ffde80b65eb84898 | |
parent | 95c9b788a0f95384c4526c34fef6e24dc7e12441 (diff) |
Oops, earlier ipv6 patch didn't work if no -r option is specified.
-rw-r--r-- | ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(']') |