Copy proxy settings for different schemes instead of reusing. Fix #468.

This commit is contained in:
FelisCatus 2015-05-22 21:34:45 +08:00
parent e4c0495e85
commit 50df9452ef

View File

@ -98,7 +98,7 @@ class ChromeOptions extends OmegaTarget.Options
else else
# Try to set the proxies of all possible protocols. # Try to set the proxies of all possible protocols.
for protocol in protocols for protocol in protocols
rules[protocol] ?= profile.fallbackProxy rules[protocol] ?= JSON.parse(JSON.stringify(profile.fallbackProxy))
else else
rules['fallbackProxy'] = profile.fallbackProxy rules['fallbackProxy'] = profile.fallbackProxy
else if not protocolProxySet else if not protocolProxySet