upstream mode: only negotiate HTTP/1 with secure proxies

This commit is contained in:
Maximilian Hils 2020-12-19 11:24:22 +01:00
parent 1ffe406d24
commit cdb0cf6c0a
1 changed files with 1 additions and 0 deletions

View File

@ -641,6 +641,7 @@ class HttpLayer(layer.Layer):
http_proxy = Server(event.via.address)
if event.via.scheme == "https":
http_proxy.alpn_offers = tls.HTTP_ALPNS
http_proxy.sni = event.via.address[0].encode()
stack /= tls.ServerTLSLayer(context, http_proxy)