mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-19 23:30:16 +08:00
Tweak upstream SNI.
This commit is contained in:
@@ -88,7 +88,7 @@ class ServerConnection(tcp.TCPClient):
|
||||
path = os.path.join(self.config.clientcerts, self.host) + ".pem"
|
||||
if os.path.exists(clientcert):
|
||||
clientcert = path
|
||||
self.convert_to_ssl(clientcert=clientcert)
|
||||
self.convert_to_ssl(clientcert=clientcert, sni=self.host)
|
||||
|
||||
def send(self, request):
|
||||
self.requestcount += 1
|
||||
|
||||
Reference in New Issue
Block a user