Skip to content

Commit

Permalink
Merge pull request #20 from libp2p/feat/conn-tagging
Browse files Browse the repository at this point in the history
tag 'can-hop' peers to aid in connection closing logic
  • Loading branch information
vyzo committed Oct 10, 2017
2 parents 5813d21 + b0909a3 commit 069bf3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/protocol/internal/circuitv1-deprecated/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (n *RelayNotifiee) Connected(s inet.Network, c inet.Conn) {
n.mx.Lock()
n.relays[id] = struct{}{}
n.mx.Unlock()
n.host.ConnManager().TagPeer(id, "relay-hop", 2)
}
}(c.RemotePeer())
}
Expand Down

0 comments on commit 069bf3e

Please sign in to comment.