mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
if no_upstream_cert is set, include SNI value als SubjectAltName, fix #291
This commit is contained in:
parent
a48cccadb5
commit
c7425f42db
@ -237,6 +237,8 @@ class ConnectionHandler:
|
||||
if upstream_cert.cn:
|
||||
host = upstream_cert.cn.decode("utf8").encode("idna")
|
||||
sans = upstream_cert.altnames
|
||||
elif self.config.no_upstream_cert and self.sni:
|
||||
sans = [self.sni]
|
||||
|
||||
ret = self.config.certstore.get_cert(host, sans)
|
||||
if not ret:
|
||||
|
Loading…
Reference in New Issue
Block a user