dht: Apply blocklist to incoming packets
This commit is contained in:
parent
97c235440c
commit
4cb3e94a91
|
@ -572,6 +572,9 @@ func (s *Server) serve() error {
|
|||
logonce.Stderr.Printf("received dht packet exceeds buffer size")
|
||||
continue
|
||||
}
|
||||
if s.ipBlocked(util.AddrIP(addr)) {
|
||||
continue
|
||||
}
|
||||
s.processPacket(b[:n], newDHTAddr(addr))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue