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
32fc3845
Commit
32fc3845
authored
10 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #757
parent
d4d3e291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
p2p/peer/peer.go
p2p/peer/peer.go
+5
-3
No files found.
p2p/peer/peer.go
View file @
32fc3845
...
...
@@ -154,9 +154,11 @@ func (pi *PeerInfo) UnmarshalJSON(b []byte) error {
return
err
}
pi
.
ID
=
pid
addrs
:=
data
[
"Addrs"
]
.
([]
interface
{})
for
_
,
a
:=
range
addrs
{
pi
.
Addrs
=
append
(
pi
.
Addrs
,
ma
.
StringCast
(
a
.
(
string
)))
addrs
,
ok
:=
data
[
"Addrs"
]
.
([]
interface
{})
if
ok
{
for
_
,
a
:=
range
addrs
{
pi
.
Addrs
=
append
(
pi
.
Addrs
,
ma
.
StringCast
(
a
.
(
string
)))
}
}
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
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