Commit 918725c4 authored by Avery Pennarun's avatar Avery Pennarun

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

parent 95c9b788
...@@ -26,7 +26,7 @@ def connect(ssh_cmd, rhostport, python): ...@@ -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(']')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment