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
+2
View File
@@ -10,6 +10,8 @@ type noop struct{}
func (n noop) Contains(ip net.IP) bool { return false }
// NewNoop returns a dummy ipblocklist which allows all incoming
// connections.
func NewNoop() mtglib.IPBlocklist {
return noop{}
}