Commit 7fe2f920 authored by Julien Muchembled's avatar Julien Muchembled

Fix forwarning of node RPC responses to the registry

This is another regression with the migration to Python 3, causing here
the registry to return invalid addresses to bootstrapping nodes and
then socket.gaierror exceptions.
parent ee2db2f4
Pipeline #39419 passed with stage
in 0 seconds
......@@ -465,7 +465,8 @@ class BaseTunnelManager:
code = c & 0x7f
if c > 0x7f and msg:
if peer and self._forward:
self._sendto(self._forward, '%s\0%c%s' % (peer, code, msg))
self._sendto(self._forward,
b'%s\0%c%s' % (peer.encode(), code, msg))
elif code == 1: # address
if msg:
if peer:
......
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