diff --git a/src/protocol.py b/src/protocol.py index f353468f..6b0e1265 100644 --- a/src/protocol.py +++ b/src/protocol.py @@ -115,8 +115,8 @@ def encodeHost(host): return '\xfd\x87\xd8\x7e\xeb\x43' + base64.b32decode( host.split(".")[0], True) except TypeError: - return '\xfd\x87\xd8\x7e\xeb\x43' + base64.b32decode( - host.split(".")[0], True).decode('utf-8', 'ignore') + return '\xfd\x87\xd8\x7e\xeb\x43' + \ + base64.b32decode(host.split(".")[0], True).decode('utf-8', 'ignore') elif host.find(':') == -1: try: return '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF' + \