This commit is contained in:
Maximilian Hils 2014-10-30 17:38:23 +01:00
parent 340d0570bf
commit 3b0964f365

View File

@ -43,9 +43,9 @@ class ProxyConfig:
self.body_size_limit = body_size_limit self.body_size_limit = body_size_limit
if mode == "transparent": if mode == "transparent":
self.mode = TransparentProxyMode(platform.resolver(), TRANSPARENT_SSL_PORTS) self.mode = TransparentProxyMode(platform.resolver(), ssl_ports)
elif mode == "socks5": elif mode == "socks5":
self.mode = Socks5ProxyMode(TRANSPARENT_SSL_PORTS) self.mode = Socks5ProxyMode(ssl_ports)
elif mode == "reverse": elif mode == "reverse":
self.mode = ReverseProxyMode(upstream_server) self.mode = ReverseProxyMode(upstream_server)
elif mode == "upstream": elif mode == "upstream":