diff options
-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 |