Commit 0ff73933 authored by vyzo's avatar vyzo
Browse files

fix announced relay address

parent 6bdfcac0
...@@ -199,12 +199,12 @@ func (h *AutoRelayHost) doUpdateAddrs() { ...@@ -199,12 +199,12 @@ func (h *AutoRelayHost) doUpdateAddrs() {
} }
} }
circuit, err := ma.NewMultiaddr("/p2p-circuit") for _, pi := range h.relays {
circuit, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s/p2p-circuit", pi.ID.Pretty()))
if err != nil { if err != nil {
panic(err) panic(err)
} }
for _, pi := range h.relays {
for _, addr := range pi.Addrs { for _, addr := range pi.Addrs {
if !manet.IsPrivateAddr(addr) { if !manet.IsPrivateAddr(addr) {
pub := addr.Encapsulate(circuit) pub := addr.Encapsulate(circuit)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment