X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/80aed6b19ff0b0927670e459ce5cc7a16ef047ec..fd740bc499ebc6d3a381479316f74cdc736d02de:/hotline/ban.go?ds=sidebyside diff --git a/hotline/ban.go b/hotline/ban.go index 14f41b9..7a9fd31 100644 --- a/hotline/ban.go +++ b/hotline/ban.go @@ -2,7 +2,8 @@ package hotline import "time" -const tempBanDuration = 30 * time.Minute +// BanDuration is the length of time for temporary bans. +const BanDuration = 30 * time.Minute type BanMgr interface { Add(ip string, until *time.Time) error