From 533e9d328dfe1261fdef5e200b1c6be39f774456 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Sun, 3 May 2026 16:58:24 +0200 Subject: [PATCH] fix: drop browser-cli ALPN restriction on TLS port 443 set_alpn_protocols(["browser-cli"]) caused TLS handshake failure (no_application_protocol alert) when connecting through a reverse proxy (e.g. Traefik) that terminates TLS but doesn't know the custom ALPN. Plain TLS without ALPN negotiation works correctly. Co-Authored-By: Claude Sonnet 4.6 --- browser_cli/client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/browser_cli/client.py b/browser_cli/client.py index eed27f8..2954973 100644 --- a/browser_cli/client.py +++ b/browser_cli/client.py @@ -287,7 +287,6 @@ def _send_remote(endpoint: str, msg: dict, private_key=None) -> bytes | None: if port == 443: import ssl ctx = ssl.create_default_context() - ctx.set_alpn_protocols(["browser-cli"]) # prevent h2/http1.1 ALPN confusion sock = ctx.wrap_socket(raw_sock, server_hostname=host) else: sock = raw_sock