mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix(session): use HTTPS scheme for Caido endpoint if TLS is enabled (#722)
This commit is contained in:
parent
0fb005c73f
commit
b9994e2e0e
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue