diff --git a/main.go b/main.go index 064449c..5b483be 100644 --- a/main.go +++ b/main.go @@ -157,6 +157,9 @@ func main() { if 0 == len(runOpts.RepoList) { runOpts.RepoList = os.Getenv("TRUST_REPOS") } + if !runOpts.TrustProxy { + runOpts.TrustProxy = ("TRUE" == strings.ToUpper(os.Getenv("TRUST_PROXY"))) + } if 0 == len(runOpts.LogDir) { runOpts.LogDir = os.Getenv("LOG_DIR") }