diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-30 11:24:41 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-30 11:24:41 +1200 |
commit | 38ebc8159008ca6b92c4de62e8228493d9b57673 (patch) | |
tree | 5557ff5323fb2226a99b8b619dee5bca99782f48 /libmproxy/proxy.py | |
parent | 8cd140ef3340775e2bb502142bfd93fc402111db (diff) | |
download | mitmproxy-38ebc8159008ca6b92c4de62e8228493d9b57673.tar.gz mitmproxy-38ebc8159008ca6b92c4de62e8228493d9b57673.tar.bz2 mitmproxy-38ebc8159008ca6b92c4de62e8228493d9b57673.zip |
Add error when -T is passed on an unsupported platform.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r-- | libmproxy/proxy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 392714ff..af4a83ec 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -425,6 +425,8 @@ def process_proxy_options(parser, options): parser.errror("Can't set both reverse proxy and transparent proxy.") if options.transparent_proxy: + if not platform.resolver: + parser.error("Transparent mode not supported on this platform.") trans = dict( resolver = platform.resolver, sslports = TRANSPARENT_SSL_PORTS |