mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
debug: add OpenSSL
This commit is contained in:
parent
3f240b1875
commit
0848d1085e
@ -9,12 +9,15 @@ import psutil
|
|||||||
|
|
||||||
from netlib import version
|
from netlib import version
|
||||||
|
|
||||||
|
from OpenSSL import SSL;
|
||||||
|
|
||||||
|
|
||||||
def sysinfo():
|
def sysinfo():
|
||||||
data = [
|
data = [
|
||||||
"Mitmproxy version: %s" % version.VERSION,
|
"Mitmproxy version: %s" % version.VERSION,
|
||||||
"Python version: %s" % platform.python_version(),
|
"Python version: %s" % platform.python_version(),
|
||||||
"Platform: %s" % platform.platform(),
|
"Platform: %s" % platform.platform(),
|
||||||
|
"SSL version: %s" % SSL.SSLeay_version(SSL.SSLEAY_VERSION),
|
||||||
]
|
]
|
||||||
d = platform.linux_distribution()
|
d = platform.linux_distribution()
|
||||||
t = "Linux distro: %s %s %s" % d
|
t = "Linux distro: %s %s %s" % d
|
||||||
|
Loading…
Reference in New Issue
Block a user