mirror of
https://github.com/maride/afl-transmit.git
synced 2024-11-21 15:04:25 +00:00
Remove unused stats
This commit is contained in:
parent
8f3f32df69
commit
0e770490e3
@ -125,13 +125,11 @@ func removeLocalPeers() {
|
||||
}
|
||||
|
||||
// Check all peers against all addresses
|
||||
removed := 0
|
||||
for i := 0; i < len(peers); i++ {
|
||||
for _, p := range blacklistPeers {
|
||||
if peers[i].Address == p.Address {
|
||||
// Found match, remove that peer
|
||||
peers = append(peers[:i], peers[i+1:]...)
|
||||
removed++
|
||||
i--
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user