Add error when -T is passed on an unsupported platform.

This commit is contained in:
Aldo Cortesi 2012-06-30 11:24:41 +12:00
parent 8cd140ef33
commit 38ebc81590

View File

@ -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