mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-30 01:51:25 +08:00
【修改】配置文件参数说明
This commit is contained in:
@@ -52,7 +52,7 @@ func InitRouter() *gin.Engine {
|
||||
router.Use(middleware.Cors())
|
||||
}
|
||||
// 流量限制
|
||||
if serverConfig.Rate.IsRate {
|
||||
if serverConfig.Rate.Enable {
|
||||
router.Use(middleware.Rate())
|
||||
}
|
||||
// api接口
|
||||
|
||||
Reference in New Issue
Block a user