Browse Source

tag relay connections

pull/454/head
vyzo 6 years ago
parent
commit
4be7ada37b
  1. 3
      p2p/host/relay/autorelay.go

3
p2p/host/relay/autorelay.go

@ -157,6 +157,9 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
h.relays[pi.ID] = pi
h.mx.Unlock()
// tag the connection as very important
h.ConnManager().TagPeer(pi.ID, "relay", 42)
update++
need--
if need == 0 {

Loading…
Cancel
Save