mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-07 02:28:50 +00:00
improve pyopenssl version check
This commit is contained in:
parent
b57c1386a1
commit
fb48217224
@ -29,7 +29,7 @@ def version_check(
|
|||||||
file=fp
|
file=fp
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
v = tuple([int(x) for x in OpenSSL.__version__.split(".")][:2])
|
v = tuple(int(x) for x in OpenSSL.__version__.split(".")[:2])
|
||||||
if v < pyopenssl_min_version:
|
if v < pyopenssl_min_version:
|
||||||
print(
|
print(
|
||||||
"You are using an outdated version of pyOpenSSL:"
|
"You are using an outdated version of pyOpenSSL:"
|
||||||
|
Loading…
Reference in New Issue
Block a user