diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js
index b0568d7..784f400 100644
--- a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js
+++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js
@@ -104,6 +104,13 @@
desc: 'Установите Tor на свой компьютер и используйте его как прокси-сервер. ВАЖНО.',
order: 5,
},
+ ifUseLocalWarp: {
+ dflt: false,
+ category: 'ownProxies',
+ label: 'использовать WARP как прокси',
+ desc: 'Использовать СВОЙ локальный CloudFlare WARP (https://one.one.one.one) в качестве прокси.',
+ order: 5.5,
+ },
exceptions: {
dflt: null,
category: 'exceptions',
@@ -245,6 +252,10 @@
customProxyArray = customProxyArray.filter( (pStr) => /^HTTPS\s/.test(pStr) );
}
}
+ if (self.ifUseLocalWarp) {
+ self.warpPoints = ['HTTPS localhost:40000', 'SOCKS5 localhost:40000'];
+ customProxyArray.push(...self.warpPoints);
+ }
if (self.ifUseLocalTor) {
self.torPoints = ['SOCKS5 localhost:9150', 'SOCKS5 localhost:9050'];
customProxyArray.push(...self.torPoints);
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 0fdc4df..3e01e54 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
@@ -80,7 +80,9 @@
localhost: { host: 'localhost' },
});
- privates._ipToHostObj = {};
+ privates._ipToHostObj = {
+ '127.0.0.1': { host: 'localhost' },
+ };
// Persisted.
const ipToHost = _state(ip2host);
@@ -257,7 +259,7 @@
const hostArr = Object.keys(privates._strToHostObj)
.filter((hostStr) => hostStr !== 'localhost');
-
+
console.log('Update all:', hostArr);
const promises = hostArr.map(