mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-04 00:31:10 +08:00
25w12b
This commit is contained in:
parent
c184e46917
commit
efdf5b0221
8 changed files with 136 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
func NoRouteHandler(cfg *config.Config, limiter *rate.RateLimiter, iplimiter *rate.IPRateLimiter, runMode string) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
|
||||
// 限制访问频率
|
||||
if cfg.RateLimit.Enabled {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue