mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
fix flags wrong
This commit is contained in:
parent
ef783f33c2
commit
40f0e3ad06
1 changed files with 11 additions and 13 deletions
24
main.go
24
main.go
|
|
@ -24,15 +24,17 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
cfg *config.Config
|
||||
router *gin.Engine
|
||||
configfile = "/data/ghproxy/config/config.toml"
|
||||
cfgfile string
|
||||
version string
|
||||
dev string
|
||||
runMode string
|
||||
limiter *rate.RateLimiter
|
||||
iplimiter *rate.IPRateLimiter
|
||||
cfg *config.Config
|
||||
router *gin.Engine
|
||||
configfile = "/data/ghproxy/config/config.toml"
|
||||
cfgfile string
|
||||
version string
|
||||
dev string
|
||||
runMode string
|
||||
limiter *rate.RateLimiter
|
||||
iplimiter *rate.IPRateLimiter
|
||||
showVersion bool
|
||||
showHelp bool
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -239,10 +241,6 @@ func init() {
|
|||
}
|
||||
|
||||
loadConfig()
|
||||
if cfg = nil {
|
||||
fmt.Println("Failed to load config")
|
||||
return
|
||||
}
|
||||
setupLogger(cfg)
|
||||
InitReq(cfg)
|
||||
loadlist(cfg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue