mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
add missing client_certs directory expansion
This commit is contained in:
parent
9016608486
commit
65b8b65ebc
@ -281,6 +281,7 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject):
|
|||||||
raise ValueError("sni must be str, not " + type(sni).__name__)
|
raise ValueError("sni must be str, not " + type(sni).__name__)
|
||||||
client_cert = None
|
client_cert = None
|
||||||
if client_certs:
|
if client_certs:
|
||||||
|
client_certs = os.path.expanduser(client_certs)
|
||||||
if os.path.isfile(client_certs):
|
if os.path.isfile(client_certs):
|
||||||
client_cert = client_certs
|
client_cert = client_certs
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user