diff --git a/internal/common/env.go b/internal/common/env.go index 3cb9937..75f33dc 100644 --- a/internal/common/env.go +++ b/internal/common/env.go @@ -15,10 +15,9 @@ import ( var ( prefixes = []string{"GODOXY_", "GOPROXY_", ""} - IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test") - IsDebug = GetEnvBool("DEBUG", IsTest) - IsTrace = GetEnvBool("TRACE", false) && IsDebug - IsProduction = !IsTest && !IsDebug + IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test") + IsDebug = GetEnvBool("DEBUG", IsTest) + IsTrace = GetEnvBool("TRACE", false) && IsDebug ProxyHTTPAddr, ProxyHTTPHost,