1.4.5.2
This commit is contained in:
12
EdgeNode/internal/utils/env_plus.go
Normal file
12
EdgeNode/internal/utils/env_plus.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
//go:build plus
|
||||
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
// IsDebugEnv 检查当前是否在调试环境
|
||||
func IsDebugEnv() bool {
|
||||
debug, _ := os.LookupEnv("EdgeDebug")
|
||||
return debug == "on"
|
||||
}
|
||||
Reference in New Issue
Block a user