From f6adb46ce616ad7ed5c711391654d45728fbf78e Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 19 Aug 2021 10:52:58 +0300 Subject: [PATCH] The command arg of protocol.CreatePacket() is of type bytes --- src/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.py b/src/protocol.py index 1b62b78f..caecb183 100644 --- a/src/protocol.py +++ b/src/protocol.py @@ -323,7 +323,7 @@ def assembleAddrMessage(peerList): payload += encodeHost(peer.host) # remote port payload += pack('>H', peer.port) - retval += CreatePacket('addr', payload) + retval += CreatePacket(b'addr', payload) return retval