upstream mode: only negotiate HTTP/1 with secure proxies
This commit is contained in:
parent
1ffe406d24
commit
cdb0cf6c0a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue