Skip to content

Commit

Permalink
Merge pull request #7 from libp2p/revert-6-fix/remote-multiaddr
Browse files Browse the repository at this point in the history
Revert "Report partial circuit address in Conn.RemoteMultiaddr"
  • Loading branch information
Stebalien authored Jul 29, 2017
2 parents 2f3fa5d + 38fbd1c commit e311bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/protocol/internal/circuitv1-deprecated/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Conn) RemoteAddr() net.Addr {
}

func (c *Conn) RemoteMultiaddr() ma.Multiaddr {
a, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s/p2p-circuit", c.Conn().RemotePeer().Pretty()))
a, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s/p2p-circuit/ipfs/%s", c.Conn().RemotePeer().Pretty(), c.remote.ID.Pretty()))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit e311bb5

Please sign in to comment.