Commit 1c616d4c authored by Julien Muchembled's avatar Julien Muchembled

Fix code of message sending back the version

Code 4 was reused by mistake for 'kill' messages.
parent 229420fa
......@@ -545,7 +545,8 @@ class TunnelManager(object):
';'.join(self._address.itervalues())))
#else: # I don't know my IP yet!
elif code == 3:
self._sendto(address, '\4' + version.version)
if len(msg) == 1:
self._sendto(address, '\3' + version.version)
elif code in (4, 5): # kill
prefix = msg[1:]
if sender and sender.startswith(prefix, len(self._network)):
......
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