Commit 4be7ada3 authored by vyzo's avatar vyzo
Browse files

tag relay connections

parent e96605d1
...@@ -157,6 +157,9 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) { ...@@ -157,6 +157,9 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
h.relays[pi.ID] = pi h.relays[pi.ID] = pi
h.mx.Unlock() h.mx.Unlock()
// tag the connection as very important
h.ConnManager().TagPeer(pi.ID, "relay", 42)
update++ update++
need-- need--
if need == 0 { if need == 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment