The command arg of protocol.CreatePacket() is of type bytes

This commit is contained in:
Dmitri Bogomolov 2021-08-19 10:52:58 +03:00 committed by Lee Miller
parent 305d5d716c
commit f6adb46ce6
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -323,7 +323,7 @@ def assembleAddrMessage(peerList):
payload += encodeHost(peer.host) payload += encodeHost(peer.host)
# remote port # remote port
payload += pack('>H', peer.port) payload += pack('>H', peer.port)
retval += CreatePacket('addr', payload) retval += CreatePacket(b'addr', payload)
return retval return retval