mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Tweak upstream SNI.
This commit is contained in:
parent
9985cf5473
commit
4e9d4e8ddd
@ -88,7 +88,7 @@ class ServerConnection(tcp.TCPClient):
|
|||||||
path = os.path.join(self.config.clientcerts, self.host) + ".pem"
|
path = os.path.join(self.config.clientcerts, self.host) + ".pem"
|
||||||
if os.path.exists(clientcert):
|
if os.path.exists(clientcert):
|
||||||
clientcert = path
|
clientcert = path
|
||||||
self.convert_to_ssl(clientcert=clientcert)
|
self.convert_to_ssl(clientcert=clientcert, sni=self.host)
|
||||||
|
|
||||||
def send(self, request):
|
def send(self, request):
|
||||||
self.requestcount += 1
|
self.requestcount += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user