Skip to content

Commit

Permalink
feat: v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed May 12, 2023
1 parent 25562d6 commit ceed9c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.2
0.6.0
10 changes: 9 additions & 1 deletion waku/v2/node/wakuoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ceed9c7

Please sign in to comment.