Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
c8d2a4e5
Unverified
Commit
c8d2a4e5
authored
Oct 25, 2018
by
Steven Allen
Committed by
GitHub
Oct 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5645 from ipfs/fix/remove-p2p-circuit-swarm-hack
remove p2p-circuit addr hack in ipfs swarm peers
parents
7ecd6756
a561eca7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
core/commands/swarm.go
core/commands/swarm.go
+1
-7
No files found.
core/commands/swarm.go
View file @
c8d2a4e5
...
...
@@ -6,7 +6,6 @@ import (
"io"
"path"
"sort"
"strings"
"github.com/ipfs/go-ipfs/commands"
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
...
...
@@ -138,12 +137,7 @@ var swarmPeersCmd = &cmds.Command{
pipfs
:=
ma
.
ProtocolWithCode
(
ma
.
P_IPFS
)
.
Name
for
_
,
info
:=
range
ci
.
Peers
{
ids
:=
fmt
.
Sprintf
(
"/%s/%s"
,
pipfs
,
info
.
Peer
)
if
strings
.
HasSuffix
(
info
.
Addr
,
ids
)
{
fmt
.
Fprintf
(
w
,
"%s"
,
info
.
Addr
)
}
else
{
fmt
.
Fprintf
(
w
,
"%s%s"
,
info
.
Addr
,
ids
)
}
fmt
.
Fprintf
(
w
,
"%s/%s/%s"
,
info
.
Addr
,
pipfs
,
info
.
Peer
)
if
info
.
Latency
!=
""
{
fmt
.
Fprintf
(
w
,
" %s"
,
info
.
Latency
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment