Skip to content

Commit e8d7ff2

Browse files
authored
Ignore setting OCSP env if already set (#1199)
1 parent 171ddf2 commit e8d7ff2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

connection_util.go

+6
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@ func populateChunkDownloader(
325325

326326
func setupOCSPEnvVars(ctx context.Context, host string) error {
327327
host = strings.ToLower(host)
328+
329+
// only set OCSP envs if not already set
330+
if val, set := os.LookupEnv(cacheServerURLEnv); set {
331+
logger.WithContext(ctx).Debugf("OCSP Cache Server already set by user for %v: %v\n", host, val)
332+
return nil
333+
}
328334
if isPrivateLink(host) {
329335
if err := setupOCSPPrivatelink(ctx, host); err != nil {
330336
return err

0 commit comments

Comments
 (0)