This commit is contained in:
WJQSERVER 2024-10-06 01:03:38 +08:00
parent 5dbf137116
commit b87a8de3c4
5 changed files with 16 additions and 20 deletions

View file

@ -16,7 +16,7 @@ import (
var (
cfg *config.Config
blacklist *config.BlacklistMap
blist *config.Blist
logw = logger.Logw
router *gin.Engine
configfile = "/data/ghproxy/config/config.yaml"
@ -87,7 +87,7 @@ func init() {
// 未匹配路由处理
router.NoRoute(func(c *gin.Context) {
proxy.NoRouteHandler(cfg, config.BlacklistMap{})(c)
proxy.NoRouteHandler(cfg, blist)(c)
})
}