From f985b6cc7bdd38bf69ef8c2803b8d0fa145f481a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 8 Mar 2021 16:07:31 -0700 Subject: [PATCH] don't ignore TRUST_PROXY --- main.go | 3 +++ 1 file changed, 3 insertions(+) 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") }