From b9994e2e0e4ddabb3660a47764fbf9e0962725f3 Mon Sep 17 00:00:00 2001 From: alex s <46074070+bearsyankees@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:23:27 -0400 Subject: [PATCH] fix(session): use HTTPS scheme for Caido endpoint if TLS is enabled (#722) --- strix/runtime/session_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/strix/runtime/session_manager.py b/strix/runtime/session_manager.py index a19495c..b16e79b 100644 --- a/strix/runtime/session_manager.py +++ b/strix/runtime/session_manager.py @@ -114,7 +114,8 @@ async def create_or_reuse( ) caido_endpoint = await session.resolve_exposed_port(_CONTAINER_CAIDO_PORT) - host_caido_url = f"http://{caido_endpoint.host}:{caido_endpoint.port}" + scheme = "https" if caido_endpoint.tls else "http" + host_caido_url = f"{scheme}://{caido_endpoint.host}:{caido_endpoint.port}" logger.debug("Caido host endpoint resolved: %s", host_caido_url) caido_client = await bootstrap_caido(