mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
fix #705
This commit is contained in:
parent
6cce2f14d7
commit
adf2877020
@ -3,7 +3,7 @@ import os
|
|||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import netlib.version
|
import netlib.version
|
||||||
import netlib.version_check
|
from netlib.version_check import check_pyopenssl_version, check_mitmproxy_version
|
||||||
from . import version, cmdline
|
from . import version, cmdline
|
||||||
from .proxy import process_proxy_options, ProxyServerError
|
from .proxy import process_proxy_options, ProxyServerError
|
||||||
from .proxy.server import DummyServer, ProxyServer
|
from .proxy.server import DummyServer, ProxyServer
|
||||||
@ -39,7 +39,8 @@ def get_server(dummy_server, options):
|
|||||||
def mitmproxy(args=None): # pragma: nocover
|
def mitmproxy(args=None): # pragma: nocover
|
||||||
from . import console
|
from . import console
|
||||||
|
|
||||||
netlib.version_check.version_check(version.IVERSION)
|
check_pyopenssl_version()
|
||||||
|
check_mitmproxy_version(version.IVERSION)
|
||||||
assert_utf8_env()
|
assert_utf8_env()
|
||||||
|
|
||||||
parser = cmdline.mitmproxy()
|
parser = cmdline.mitmproxy()
|
||||||
@ -67,7 +68,8 @@ def mitmproxy(args=None): # pragma: nocover
|
|||||||
def mitmdump(args=None): # pragma: nocover
|
def mitmdump(args=None): # pragma: nocover
|
||||||
from . import dump
|
from . import dump
|
||||||
|
|
||||||
netlib.version_check.version_check(version.IVERSION)
|
check_pyopenssl_version()
|
||||||
|
check_mitmproxy_version(version.IVERSION)
|
||||||
|
|
||||||
parser = cmdline.mitmdump()
|
parser = cmdline.mitmdump()
|
||||||
options = parser.parse_args(args)
|
options = parser.parse_args(args)
|
||||||
@ -101,7 +103,9 @@ def mitmdump(args=None): # pragma: nocover
|
|||||||
def mitmweb(args=None): # pragma: nocover
|
def mitmweb(args=None): # pragma: nocover
|
||||||
from . import web
|
from . import web
|
||||||
|
|
||||||
netlib.version_check.version_check(version.IVERSION)
|
check_pyopenssl_version()
|
||||||
|
check_mitmproxy_version(version.IVERSION)
|
||||||
|
|
||||||
parser = cmdline.mitmweb()
|
parser = cmdline.mitmweb()
|
||||||
|
|
||||||
options = parser.parse_args(args)
|
options = parser.parse_args(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user