Fix ws console and packet capture over SSL

This commit is contained in:
grossmj
2023-11-03 15:35:49 +10:00
parent 13630179b2
commit 61dede72f9
2 changed files with 5 additions and 2 deletions

View File

@ -267,11 +267,13 @@ async def stream_pcap(request: Request, link: Link = Depends(dep_link)) -> Strea
async def compute_pcap_stream():
try:
ssl_context = Controller.instance().ssl_context()
async with HTTPClient.request(
request.method,
pcap_streaming_url,
user=compute.user,
password=compute.password,
ssl_context=ssl_context,
timeout=None,
data=body
) as response: