]> 127.0.0.1 Git - part/.git/commitdiff
add v0.27.12
authorqydysky <qydysky@foxmail.com>
Wed, 24 May 2023 12:28:35 +0000 (20:28 +0800)
committerqydysky <qydysky@foxmail.com>
Wed, 24 May 2023 12:28:35 +0000 (20:28 +0800)
web/Web.go

index f6d9b974f0d592c3d7a94de7f69ba1e648613276..014da5f6d9af2bb9f8bcf1ab53c6718fcc62f632 100644 (file)
@@ -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
        }