mirror of
https://github.com/vacp2p/nim-libp2p-experimental.git
synced 2025-01-12 03:14:15 +00:00
Fix write should be writeArray.
This commit is contained in:
parent
ff48d0b1a2
commit
04c95cb7b0
@ -856,7 +856,7 @@ proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress,
|
||||
of IpAddressFamily.IPv4: res.data.writeArray(address.address_v4)
|
||||
of IpAddressFamily.IPv6: res.data.writeArray(address.address_v6)
|
||||
res.data.write(transportProto.mcodec)
|
||||
res.data.write(toBytesBE(uint16(port)))
|
||||
res.data.writeArray(toBytesBE(uint16(port)))
|
||||
res.data.finish()
|
||||
ok(res)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user