Skip to content

Commit 5058808

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
fix: verify SSL by default and disable it via env var
1 parent 435f55f commit 5058808

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/openlayer/lib/tracing/tracer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
TRUE_LIST = ["true", "on", "1"]
2121

2222
_publish = utils.get_env_variable("OPENLAYER_DISABLE_PUBLISH") not in TRUE_LIST
23-
_verify_ssl = utils.get_env_variable("OPENLAYER_VERIFY_SSL").lower() in TRUE_LIST
23+
_verify_ssl = (
24+
utils.get_env_variable("OPENLAYER_VERIFY_SSL", "true").lower() in TRUE_LIST
25+
)
2426
_client = None
2527
if _publish:
2628
if _verify_ssl:

0 commit comments

Comments
 (0)