mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
remove unused env 'IsProduction'
This commit is contained in:
parent
f9b7e64d53
commit
09db57db8f
1 changed files with 3 additions and 4 deletions
|
@ -15,10 +15,9 @@ import (
|
||||||
var (
|
var (
|
||||||
prefixes = []string{"GODOXY_", "GOPROXY_", ""}
|
prefixes = []string{"GODOXY_", "GOPROXY_", ""}
|
||||||
|
|
||||||
IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
|
IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
|
||||||
IsDebug = GetEnvBool("DEBUG", IsTest)
|
IsDebug = GetEnvBool("DEBUG", IsTest)
|
||||||
IsTrace = GetEnvBool("TRACE", false) && IsDebug
|
IsTrace = GetEnvBool("TRACE", false) && IsDebug
|
||||||
IsProduction = !IsTest && !IsDebug
|
|
||||||
|
|
||||||
ProxyHTTPAddr,
|
ProxyHTTPAddr,
|
||||||
ProxyHTTPHost,
|
ProxyHTTPHost,
|
||||||
|
|
Loading…
Add table
Reference in a new issue