mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
Add .onion to local tor
This commit is contained in:
parent
e7e9aa3319
commit
5d06499385
|
@ -174,7 +174,8 @@
|
|||
}
|
||||
}
|
||||
if (self.ifUseLocalTor) {
|
||||
customProxyArray.push('SOCKS5 localhost:9050', 'SOCKS5 localhost:9150');
|
||||
self.torPoints = ['SOCKS5 localhost:9150', 'SOCKS5 localhost:9050'];
|
||||
customProxyArray.push(...self.torPoints);
|
||||
}
|
||||
|
||||
self.filteredCustomsString = '';
|
||||
|
@ -248,6 +249,16 @@
|
|||
/******/ return "DIRECT";
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ `;
|
||||
}
|
||||
if (pacMods.ifUseLocalTor) {
|
||||
|
||||
res += `
|
||||
/******/
|
||||
/******/ if (host.endsWith(".onion")) {
|
||||
/******/ return "${pacMods.torPoints.join('; ')}";
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ `;
|
||||
}
|
||||
res += `
|
||||
|
|
Loading…
Reference in New Issue
Block a user