libp2p/multiaddress.nim: use of IpAddress instead of ValidIpAddress (#1001)

This commit is contained in:
Ivan FB 2023-12-12 12:53:36 +01:00 committed by GitHub
parent c6566707fa
commit 3011ba4326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ proc init*(mtype: typedesc[MultiAddress]): MultiAddress =
## Initialize empty MultiAddress. ## Initialize empty MultiAddress.
result.data = initVBuffer() result.data = initVBuffer()
proc init*(mtype: typedesc[MultiAddress], address: ValidIpAddress, proc init*(mtype: typedesc[MultiAddress], address: IpAddress,
protocol: IpTransportProtocol, port: Port): MultiAddress = protocol: IpTransportProtocol, port: Port): MultiAddress =
var res: MultiAddress var res: MultiAddress
res.data = initVBuffer() res.data = initVBuffer()