This commit is contained in:
WJQSERVER 2024-10-06 04:01:53 +08:00
parent 815b86c6c6
commit 61e741c9b3
5 changed files with 18 additions and 5 deletions

View file

@ -7,6 +7,7 @@ import (
"net/http"
"regexp"
"ghproxy/auth"
"ghproxy/config"
"ghproxy/logger"
"ghproxy/proxy"
@ -52,9 +53,14 @@ func setupLogger() {
logw("Init Completed")
}
func LoadBlacklist(cfg *config.Config) {
auth.LoadBlacklist(cfg)
}
func init() {
loadConfig()
setupLogger()
LoadBlacklist(cfg)
// 设置 Gin 模式
gin.SetMode(gin.ReleaseMode)