mirror of https://github.com/status-im/go-waku.git
feat: v0.6.0
This commit is contained in:
parent
25562d6240
commit
ceed9c7d59
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue