Skip to content

Commit d98d1cf

Browse files
author
CCCC
committed
feat(im): allow keeping proxy env vars
1 parent 08ac95d commit d98d1cf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cccc/ports/im/adapters/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ def _disable_proxies(self) -> None:
3535
proxy environment variables ensures reliable WebSocket connections.
3636
"""
3737
import os
38+
raw = str(os.getenv("CCCC_IM_DISABLE_PROXIES", "")).strip().lower()
39+
if raw in ("0", "false", "no", "off"):
40+
self._log("[connect] Keeping proxy environment variables (CCCC_IM_DISABLE_PROXIES=0)")
41+
return
42+
3843
os.environ["no_proxy"] = "*"
3944
os.environ["NO_PROXY"] = "*"
4045
self._log("[connect] Set no_proxy=* to bypass all proxies")

0 commit comments

Comments
 (0)