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

Report partial circuit address in Conn.RemoteMultiaddr #6

Merged
merged 2 commits into from
Jul 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}