Add documentation for ipblocklist

This commit is contained in:
9seconds
2021-04-05 16:09:21 +03:00
parent 04b88cc864
commit 0274b3436a
6 changed files with 82 additions and 28 deletions
+6
View File
@@ -69,6 +69,12 @@ type AntiReplayCache interface {
SeenBefore(data []byte) bool
}
// IPBlocklist filters requests based on IP address.
//
// If this filter has an IP address, then mtg closes a request without
// reading anything from a socket. It also does not give such request to
// a worker pool, so in worst cases you can expect that you invoke this
// object more frequent than defined proxy concurrency.
type IPBlocklist interface {
Contains(net.IP) bool
}