From: qydysky Date: Wed, 24 May 2023 12:28:35 +0000 (+0800) Subject: add X-Git-Tag: v0.27.12 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=e4452832d54bca48e9bd3d8757bd020ae09b559f;p=part%2F.git add --- 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 }