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
6
main.go
6
main.go
|
|
@ -33,6 +33,8 @@ var (
|
|||
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