diff --git a/libmproxy/main.py b/libmproxy/main.py index e343bd75a..f30b5928d 100644 --- a/libmproxy/main.py +++ b/libmproxy/main.py @@ -22,7 +22,7 @@ def check_versions(): file=sys.stderr) import OpenSSL, inspect - v = [int(x) for x in OpenSSL.__version__.split(".")][:2] + v = tuple([int(x) for x in OpenSSL.__version__.split(".")][:2]) if v < (0, 14): print("You are using an outdated version of pyOpenSSL: mitmproxy requires pyOpenSSL 0.14 or greater.", file=sys.stderr) diff --git a/mitmdump b/mitmdump new file mode 100644 index 000000000..8cc4c99f8 --- /dev/null +++ b/mitmdump @@ -0,0 +1,3 @@ +#!/usr/bin/env python +from libmproxy.main import mitmdump +mitmdump() \ No newline at end of file diff --git a/mitmproxy b/mitmproxy new file mode 100644 index 000000000..cd22282b0 --- /dev/null +++ b/mitmproxy @@ -0,0 +1,3 @@ +#!/usr/bin/env python +from libmproxy.main import mitmproxy +mitmproxy() \ No newline at end of file