diff options
Diffstat (limited to 'hotline/ban.go')
| -rw-r--r-- | hotline/ban.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |