Skip to content

Commit

Permalink
ban after 5 drops
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 22, 2024
1 parent c802be4 commit e5388dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webseed-peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ func (cn *webseedPeer) ban() {
banCount := cn.peer.banCount
cn.peer.mu.Unlock()

if banCount > 16 && !cn.peer.closed.IsSet() {
if banCount > 5 && !cn.peer.closed.IsSet() {
cn.peer.close(true)
}
}
Expand Down

0 comments on commit e5388dd

Please sign in to comment.