mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w09b
This commit is contained in:
parent
815b86c6c6
commit
61e741c9b3
5 changed files with 18 additions and 5 deletions
6
main.go
6
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue