libp2p/multiaddress.nim: use of IpAddress instead of ValidIpAddress (#1001)
This commit is contained in:
parent
c6566707fa
commit
3011ba4326
|
@ -958,7 +958,7 @@ proc init*(mtype: typedesc[MultiAddress]): MultiAddress =
|
|||
## Initialize empty MultiAddress.
|
||||
result.data = initVBuffer()
|
||||
|
||||
proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress,
|
||||
proc init*(mtype: typedesc[MultiAddress], address: IpAddress,
|
||||
protocol: IpTransportProtocol, port: Port): MultiAddress =
|
||||
var res: MultiAddress
|
||||
res.data = initVBuffer()
|
||||
|
|
Loading…
Reference in New Issue