Files
Proxmox-VPS-Panel/backend/app/routers/console.py
T
2026-07-25 00:08:03 +03:00

10 lines
462 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
try:
# extra_headers (а не additional_headers) — последний не поддерживается
# в uvloop, который использует uvicorn[standard].
async with websockets.connect(
upstream_url,
extra_headers=headers,
subprotocols=["binary"],
ssl=None if settings.pve_verify_ssl else False,
process_redirect=_process_redirect,
) as upstream: