fix ValidIpAddress multiaddress init return type

This commit is contained in:
Giovanni Petrantoni 2020-10-31 13:20:29 +09:00
parent 04c95cb7b0
commit 9c1633bf87
1 changed files with 1 additions and 1 deletions

View File

@ -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] =