fix tag increment

This commit is contained in:
vyzo
2021-09-16 09:35:20 +03:00
parent 3df061d90e
commit 369df59523
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ func (r *Relay) addConn(p peer.ID) {
conns := r.conns[p]
conns++
r.conns[p] = conns
if conns < MaxRelayHopTag {
if conns <= MaxRelayHopTag {
r.host.ConnManager().UpsertTag(p, RelayHopTag, func(v int) int { return v + 1 })
}
}