fix(session): use HTTPS scheme for Caido endpoint if TLS is enabled

This commit is contained in:
bearsyankees
2026-07-10 00:17:07 -04:00
parent 0fb005c73f
commit 4523377b21
+2 -1
View File
@@ -114,7 +114,8 @@ async def create_or_reuse(
) )
caido_endpoint = await session.resolve_exposed_port(_CONTAINER_CAIDO_PORT) 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) logger.debug("Caido host endpoint resolved: %s", host_caido_url)
caido_client = await bootstrap_caido( caido_client = await bootstrap_caido(