From c91eb339afa34ab216731d1b7d27c0bebf67f6c7 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sun, 8 Oct 2017 10:15:03 -0700 Subject: [PATCH] tag 'can-hop' peers to aid in connection closing logic --- notify.go | 1 + 1 file changed, 1 insertion(+) diff --git a/notify.go b/notify.go index f3ea08c..dec3116 100644 --- a/notify.go +++ b/notify.go @@ -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()) }