From b42b6a03d493fc9f8c749f7f5f0292cf6ba50f18 Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Mon, 12 Jun 2017 22:15:15 +0500 Subject: [PATCH] Strip DIRECT in the migration of a proxy string --- .../extension-common/pages/options/src/components/ProxyEditor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js index 759aab7..bf8ef4f 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js @@ -505,6 +505,7 @@ PROXY foobar.com:8080; # Not HTTP!`.trim()} return proxyStringRaw .replace(/#.*$/mg, '') // Strip comments. + .replace(/\s*DIRECT\s*/g, '') // Remove DIRECT from old versions. .split( /(?:[^\S\r\n]*(?:;|\r?\n)+[^\S\r\n]*)+/g ) .map( (p) => p.trim() ) .filter((p) => p)