mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-12-03 14:53:43 +03:00
Fix 2 bugs in exceptions handling
This commit is contained in:
parent
14f32b4d13
commit
0b13cb1dd0
|
@ -387,7 +387,7 @@
|
|||
const ifIncluded = pacMods.included && pacMods.included.length;
|
||||
const ifExcluded = pacMods.excluded && pacMods.excluded.length;
|
||||
const ifManualExceptions = ifIncluded || ifExcluded;
|
||||
const finalExceptions = {};
|
||||
let finalExceptions = {};
|
||||
if (pacMods.ifProxyMoreDomains) {
|
||||
finalExceptions = pacMods.moreDomains.reduce((acc, tld) => {
|
||||
|
||||
|
@ -419,7 +419,7 @@
|
|||
/******/ if (!isHostInDomain(domain, ifWild)) {
|
||||
/******/ return maxWeight;
|
||||
/******/ }
|
||||
const len = domain.length;
|
||||
let len = domain.length;
|
||||
if (ifWild) {
|
||||
len = len === 0 ? len : (len - 2)*2 - 1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user