The command arg of protocol.CreatePacket() is of type bytes
This commit is contained in:
parent
305d5d716c
commit
f6adb46ce6
|
@ -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
|
||||
|
||||
|
||||
|
|
Reference in New Issue
Block a user