Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from libp2p/fix/remote-multiaddr
Browse files Browse the repository at this point in the history
Report partial circuit address in Conn.RemoteMultiaddr
  • Loading branch information
vyzo authored Jul 29, 2017
2 parents a54317a + 1209612 commit f38b618
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1: QmVEPsD9h95ToAC7NJpYopFcXyjVJm35xV4tw43J5JdCnL
1.1.2: QmbqVLSFKrwKKBJeea2P47t68Na2of25scTMrbzJUqJBWQ
2 changes: 1 addition & 1 deletion 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/ipfs/%s", c.Conn().RemotePeer().Pretty(), c.remote.ID.Pretty()))
a, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s/p2p-circuit", c.Conn().RemotePeer().Pretty()))
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@
"license": "MIT",
"name": "go-libp2p-circuit",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "1.1.1"
"version": "1.1.2"
}

0 comments on commit f38b618

Please sign in to comment.