mirror of https://github.com/vacp2p/nim-libp2p.git
fix ValidIpAddress multiaddress init return type
This commit is contained in:
parent
04c95cb7b0
commit
9c1633bf87
|
@ -858,7 +858,7 @@ proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress,
|
|||
res.data.write(transportProto.mcodec)
|
||||
res.data.writeArray(toBytesBE(uint16(port)))
|
||||
res.data.finish()
|
||||
ok(res)
|
||||
res
|
||||
|
||||
proc init*(mtype: typedesc[MultiAddress], address: TransportAddress,
|
||||
protocol = IPPROTO_TCP): MaResult[MultiAddress] =
|
||||
|
|
Loading…
Reference in New Issue