set alpn protocol to browser-cli prevent h2/http1.1 ALPN confusion
Testing / test (push) Failing after 14m46s
Testing / test (push) Failing after 14m46s
This commit is contained in:
@@ -250,6 +250,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user