Remove broken IPv6 code.

This commit is contained in:
Brian May 2014-09-15 14:23:09 +10:00
parent 0f2c249e4d
commit a33f6199c4

View File

@ -27,9 +27,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
main_exe = sys.argv[0]
portl = []
rhostIsIPv6 = False
if (rhostport or '').count(':') > 1:
rhostIsIPv6 = True
if rhostport.count(']') or rhostport.count('['):
result = rhostport.split(']')
rhost = result[0].strip('[')
@ -48,10 +46,6 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
if rhost == '-':
rhost = None
ipv6flag = []
if rhostIsIPv6:
ipv6flag = ['-6']
z = zlib.compressobj(1)
content = readfile('assembler.py')
optdata = ''.join("%s=%r\n" % (k,v) for (k,v) in options.items())
@ -88,7 +82,6 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
"exec \"$P\" -c '%s'") % pyscript
argv = (sshl +
portl +
ipv6flag +
[rhost, '--', pycmd])
(s1,s2) = socket.socketpair()
def setup():