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
d113aa8c
Commit
d113aa8c
authored
Oct 11, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no longer store incoming addrs
parent
a2d55f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
net/swarm/conn.go
net/swarm/conn.go
+4
-1
No files found.
net/swarm/conn.go
View file @
d113aa8c
...
@@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
...
@@ -114,7 +114,10 @@ func (s *Swarm) connSetup(c *conn.Conn) error {
log
.
Debug
(
"%s secured connection: %s"
,
c
.
Local
,
c
.
Remote
)
log
.
Debug
(
"%s secured connection: %s"
,
c
.
Local
,
c
.
Remote
)
// add address of connection to Peer. Maybe it should happen in connSecure.
// add address of connection to Peer. Maybe it should happen in connSecure.
c
.
Remote
.
AddAddress
(
c
.
Conn
.
RemoteMultiaddr
())
// NOT adding this address here, because the incoming address in TCP
// is an EPHEMERAL address, and not the address we want to keep around.
// addresses should be figured out through the DHT.
// c.Remote.AddAddress(c.Conn.RemoteMultiaddr())
if
err
:=
s
.
connVersionExchange
(
c
);
err
!=
nil
{
if
err
:=
s
.
connVersionExchange
(
c
);
err
!=
nil
{
return
fmt
.
Errorf
(
"Conn version exchange error: %v"
,
err
)
return
fmt
.
Errorf
(
"Conn version exchange error: %v"
,
err
)
...
...
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