From 52852e6ce2881785e6f03ba6a9f8dfcb536504a1 Mon Sep 17 00:00:00 2001 From: yaooort Date: Sat, 9 Oct 2021 20:37:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/middleware/limit_ip.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/middleware/limit_ip.go b/server/middleware/limit_ip.go index 21e66d2a..0e18cac9 100644 --- a/server/middleware/limit_ip.go +++ b/server/middleware/limit_ip.go @@ -18,6 +18,7 @@ func IPLimit() gin.HandlerFunc { expiration := time.Duration(second) * time.Second if err := SetLimitWithTime(key, limit, expiration); err != nil { response.FailWithMessage(err.Error(), c) + c.Abort() return } // 继续往下处理