MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / IsSkipSSLVerifyEnvSet

Function IsSkipSSLVerifyEnvSet

agent-source-code/internal/client/client.go:38–41  ·  view source on GitHub ↗

IsSkipSSLVerifyEnvSet returns true if PATCHMON_SKIP_SSL_VERIFY is set to "true" or "1"

()

Source from the content-addressed store, hash-verified

36
37// IsSkipSSLVerifyEnvSet returns true if PATCHMON_SKIP_SSL_VERIFY is set to "true" or "1"
38func IsSkipSSLVerifyEnvSet() bool {
39 v := strings.ToLower(strings.TrimSpace(os.Getenv("PATCHMON_SKIP_SSL_VERIFY")))
40 return v == "true" || v == "1"
41}
42
43// New creates a new HTTP client
44func New(configMgr *config.Manager, logger *logrus.Logger) *Client {

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected