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.IPv4: res.data.writeArray(address.address_v4)
|
||||||
of IpAddressFamily.IPv6: res.data.writeArray(address.address_v6)
|
of IpAddressFamily.IPv6: res.data.writeArray(address.address_v6)
|
||||||
res.data.write(transportProto.mcodec)
|
res.data.write(transportProto.mcodec)
|
||||||
res.data.write(toBytesBE(uint16(port)))
|
res.data.writeArray(toBytesBE(uint16(port)))
|
||||||
res.data.finish()
|
res.data.finish()
|
||||||
ok(res)
|
ok(res)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue