From 034c08828fca675136d264ab30227cb6f4b0b56f Mon Sep 17 00:00:00 2001 From: ilyaigpetrov Date: Sat, 26 Jun 2021 16:51:46 +0000 Subject: [PATCH] Inform FireFox user about WARP proxying via block-informer (https proxy fails) --- .../src/extension-full/20-ip-to-host-api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-full/20-ip-to-host-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-full/20-ip-to-host-api.js index 3e01e54..1b34a9f 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-full/20-ip-to-host-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-full/20-ip-to-host-api.js @@ -82,6 +82,7 @@ privates._ipToHostObj = { '127.0.0.1': { host: 'localhost' }, + '0.0.0.0': { host: 'localhost' }, }; // Persisted. @@ -108,7 +109,7 @@ const getIpsFor = function getIpsFor(host, cb = mandatory()) { if (host.trim() === 'localhost') { - return cb(null, ['127.0.0.1', '::1']); + return cb(null, ['127.0.0.1', '0.0.0.0', '::1']); } const types = [1, 28]; const promises = types.map(