From a7fa690e949f0de1295190dbbc395d6d96208583 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Thu, 28 May 2015 17:31:52 +0800 Subject: [PATCH] Change to OmegaPac.Conditions.localHosts in Chromium. Fix #443. This works around the issue where Chromium incorrectly bypasses all IPv6 address literals when given in bypass list. See #443. --- omega-target-chromium-extension/src/options.coffee | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/omega-target-chromium-extension/src/options.coffee b/omega-target-chromium-extension/src/options.coffee index 7687735..6c95e35 100644 --- a/omega-target-chromium-extension/src/options.coffee +++ b/omega-target-chromium-extension/src/options.coffee @@ -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 == '' + for host in OmegaPac.Conditions.localHosts + bypassList.push(host) + else + bypassList.push(rule.pattern) config['rules'] = rules return config