From e4452832d54bca48e9bd3d8757bd020ae09b559f Mon Sep 17 00:00:00 2001 From: qydysky Date: Wed, 24 May 2023 20:28:35 +0800 Subject: [PATCH] add --- web/Web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/Web.go b/web/Web.go index f6d9b97..014da5f 100644 --- a/web/Web.go +++ b/web/Web.go @@ -171,7 +171,7 @@ func (t *CountLimits) SetMaxCount(cidr string, max int) { } } -func (t *CountLimits) IsOverflow(r *http.Request) (isOverflow bool) { +func (t *CountLimits) ReachMax(r *http.Request) (isOverflow bool) { if len(t.g) == 0 { return } @@ -190,7 +190,7 @@ func (t *CountLimits) IsOverflow(r *http.Request) (isOverflow bool) { return } -func (t *CountLimits) AddOverflow(r *http.Request) (isOverflow bool) { +func (t *CountLimits) AddCount(r *http.Request) (isOverflow bool) { if len(t.g) == 0 { return } -- 2.39.2