Skip to content

Commit

Permalink
Machine ID: TBOT_USE_PROXY_ADDR use "yes" vs "1" for consistency (#48667
Browse files Browse the repository at this point in the history
)

* Prefer "yes" over "1" for historical consistency

* Try and retrigger the CLA check with an empty commit
  • Loading branch information
strideynet committed Nov 8, 2024
1 parent bd10eb9 commit 1ef927b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tbot/tbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,11 @@ type proxyPingResponse struct {
const useProxyAddrEnv = "TBOT_USE_PROXY_ADDR"

// shouldUseProxyAddr returns true if the TBOT_USE_PROXY_ADDR environment
// variable is set to "1". More generally, this indicates that the user wishes
// variable is set to "yes". More generally, this indicates that the user wishes
// for tbot to prefer using the proxy address that has been explicitly provided
// by the user rather than the one fetched via a discovery process (e.g ping).
func shouldUseProxyAddr() bool {
return os.Getenv(useProxyAddrEnv) == "1"
return os.Getenv(useProxyAddrEnv) == "yes"
}

// proxyWebAddr returns the address to use to connect to the proxy web port.
Expand Down

0 comments on commit 1ef927b

Please sign in to comment.