From adf2877020c563fa9dc9a4df26bfd8b243e8e41a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 3 Aug 2015 18:07:30 +0200 Subject: [PATCH] fix #705 --- libmproxy/main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libmproxy/main.py b/libmproxy/main.py index e7d0f7e0b..4dd6fdb1e 100644 --- a/libmproxy/main.py +++ b/libmproxy/main.py @@ -3,7 +3,7 @@ import os import signal import sys import netlib.version -import netlib.version_check +from netlib.version_check import check_pyopenssl_version, check_mitmproxy_version from . import version, cmdline from .proxy import process_proxy_options, ProxyServerError from .proxy.server import DummyServer, ProxyServer @@ -39,7 +39,8 @@ def get_server(dummy_server, options): def mitmproxy(args=None): # pragma: nocover from . import console - netlib.version_check.version_check(version.IVERSION) + check_pyopenssl_version() + check_mitmproxy_version(version.IVERSION) assert_utf8_env() parser = cmdline.mitmproxy() @@ -67,7 +68,8 @@ def mitmproxy(args=None): # pragma: nocover def mitmdump(args=None): # pragma: nocover from . import dump - netlib.version_check.version_check(version.IVERSION) + check_pyopenssl_version() + check_mitmproxy_version(version.IVERSION) parser = cmdline.mitmdump() options = parser.parse_args(args) @@ -101,7 +103,9 @@ def mitmdump(args=None): # pragma: nocover def mitmweb(args=None): # pragma: nocover from . import web - netlib.version_check.version_check(version.IVERSION) + check_pyopenssl_version() + check_mitmproxy_version(version.IVERSION) + parser = cmdline.mitmweb() options = parser.parse_args(args)