update api for sni call (#6077)

This commit is contained in:
Niles Ingalls 2023-04-22 05:48:24 -05:00 committed by GitHub
parent be02b1e298
commit 19218bfaf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class Rerouter:
def request(self, flow):
if flow.client_conn.tls_established:
flow.request.scheme = "https"
sni = flow.client_conn.connection.get_servername()
sni = flow.client_conn.sni
port = 443
else:
flow.request.scheme = "http"