mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
remove unused env 'IsProduction'
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user