summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-12-09 19:19:15 -0800
committerAvery Pennarun <apenwarr@gmail.com>2010-12-09 19:20:01 -0800
commit918725c4857f8b6fc31813354ba29e152a83b751 (patch)
tree949631aaaf6c5dbf7cc49b08ffde80b65eb84898
parent95c9b788a0f95384c4526c34fef6e24dc7e12441 (diff)
Oops, earlier ipv6 patch didn't work if no -r option is specified.
-rw-r--r--ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh.py b/ssh.py
index e90bda4..dd9e042 100644
--- a/ssh.py
+++ b/ssh.py
@@ -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(']')