From a07ecfeaf2cdb8f87f0e820f8bb2f6f376a92177 Mon Sep 17 00:00:00 2001 From: "Ilya Ig. Petrov" Date: Wed, 29 Nov 2017 13:05:00 +0500 Subject: [PATCH] Add more error to ignore list --- .../src/extension-common/11-error-handlers-api.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js index 67ac40e..379ced1 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/11-error-handlers-api.js @@ -259,7 +259,11 @@ error: "net::ERR_PAC_SCRIPT_FAILED", fatal: false, */ - const ifConFail = details.error === 'net::ERR_PROXY_CONNECTION_FAILED'; + const ifConFail = [ + 'net::ERR_TUNNEL_CONNECTION_FAILED', + 'net::ERR_PROXY_CONNECTION_FAILED', + ].includes(details.error); + if (ifConFail) { // Happens if you return neither prixies nor "DIRECT". // Ignore it.