feat: v0.6.0

This commit is contained in:
Richard Ramos 2023-05-12 09:22:39 -04:00
parent 25562d6240
commit ceed9c7d59
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
2 changed files with 10 additions and 2 deletions

View File

@ -1 +1 @@
0.5.2
0.6.0

View File

@ -235,9 +235,17 @@ func WithExternalIP(ip net.IP) WakuNodeOption {
panic("Could not build external IP")
}
addrSet := make(map[string]multiaddr.Multiaddr)
for _, addr := range inputAddr {
_, rest := multiaddr.SplitFirst(addr)
addresses = append(addresses, hostAddrMA.Encapsulate(rest))
addr := hostAddrMA.Encapsulate(rest)
addrSet[addr.String()] = addr
}
for _, addr := range addrSet {
addresses = append(addresses, addr)
}
return addresses