mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Add error when -T is passed on an unsupported platform.
This commit is contained in:
parent
8cd140ef33
commit
38ebc81590
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user