Change <local> to OmegaPac.Conditions.localHosts in Chromium. Fix #443.

This works around the issue where Chromium incorrectly bypasses all IPv6
address literals when given <local> in bypass list. See #443.
This commit is contained in:
FelisCatus 2015-05-28 17:31:52 +08:00
parent 4f4e8954e9
commit a7fa690e94

View File

@ -106,7 +106,13 @@ class ChromeOptions extends OmegaTarget.Options
config['mode'] = 'direct'
if config['mode'] != 'direct'
rules['bypassList'] = profile.bypassList.map((b) -> b.pattern)
rules['bypassList'] = bypassList = []
for rule in profile.bypassList
if rule.pattern == '<local>'
for host in OmegaPac.Conditions.localHosts
bypassList.push(host)
else
bypassList.push(rule.pattern)
config['rules'] = rules
return config