mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-11-23 13:19:48 +00:00
update api for sni call (#6077)
This commit is contained in:
parent
be02b1e298
commit
19218bfaf2
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user