mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
fix
This commit is contained in:
parent
5dbf137116
commit
b87a8de3c4
5 changed files with 16 additions and 20 deletions
4
main.go
4
main.go
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue