mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
improve pyopenssl version check
This commit is contained in:
parent
b57c1386a1
commit
fb48217224
@ -29,7 +29,7 @@ def version_check(
|
||||
file=fp
|
||||
)
|
||||
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:
|
||||
print(
|
||||
"You are using an outdated version of pyOpenSSL:"
|
||||
|
Loading…
Reference in New Issue
Block a user