Fix broken whitelists

This commit is contained in:
9seconds
2022-03-11 10:50:15 +03:00
parent 01e201365b
commit 0ce0c668b9
6 changed files with 29 additions and 5 deletions
+6
View File
@@ -176,6 +176,12 @@ type IPBlocklist interface {
// Contains checks if given IP address belongs to this blocklist If.
// it is, a connection is terminated .
Contains(net.IP) bool
// Run starts a background update procedure for a blocklist
Run(time.Duration)
// Shutdown stops a blocklist. It is assumed that none will access it after.
Shutdown()
}
// Event is a data structure which is populated during mtg request