Skip to content

Commit

Permalink
fix: ignore empty proxy setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Dec 21, 2023
1 parent 3b73499 commit 750c56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
c.Resty.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
}

if p, found := os.LookupEnv("VCENTER_PROXY_URL"); found {
if p, found := os.LookupEnv("VCENTER_PROXY_URL"); found && p != "" {
logrus.Debug("Setting proxy URL")
c.Resty.SetProxy(p)
}
Expand Down

0 comments on commit 750c56f

Please sign in to comment.