This website works better with JavaScript.
Home
Explore
Help
Sign In
EggPlanet
/
egg_app
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
adv_callback
dengbiao
1 month ago
parent
2c49250838
commit
817e336cb2
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/mw/mw_limiter.go
+ 1
- 1
app/mw/mw_limiter.go
View File
@@ -56,7 +56,7 @@ func Limiter(c *gin.Context) {
// 2s后没返回自动释放
go cache.SetEx(Md5, "0", ttl)
key := "
NEW_
LIMITER_APP
_COMM_
" + ip
key := "LIMITER_
EGG_
APP" + ip
reqs, _ := cache.GetInt(key)
if reqs >= limit {
c.AbortWithStatusJSON(429, gin.H{
Write
Preview
Loading…
Cancel
Save