mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
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:
parent
4f4e8954e9
commit
a7fa690e94
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user