mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
fix
This commit is contained in:
parent
90b9c69dad
commit
de65889a4d
1 changed files with 3 additions and 3 deletions
6
main.go
6
main.go
|
|
@ -26,7 +26,7 @@ var (
|
|||
configfile = "/data/ghproxy/config/config.toml"
|
||||
cfgfile string
|
||||
version string
|
||||
dev bool
|
||||
dev string
|
||||
runMode string
|
||||
limiter *rate.RateLimiter
|
||||
iplimiter *rate.IPRateLimiter
|
||||
|
|
@ -99,9 +99,9 @@ func init() {
|
|||
setupRateLimit(cfg)
|
||||
|
||||
if cfg.Server.Debug {
|
||||
dev = true
|
||||
dev = "true"
|
||||
}
|
||||
if dev {
|
||||
if dev == "true" {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
runMode = "dev"
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue