mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-15 10:40:33 +08:00
Fix: salvaged adgaurd rules should match original domain
This commit is contained in:
parent
99aa449d57
commit
0540c1de21
@ -14,6 +14,6 @@ export const loosTldOptWithPrivateDomains: Parameters<typeof tldts.getSubdomain>
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const normalizeTldtsOpt: Parameters<typeof tldts.getSubdomain>[1] = {
|
export const normalizeTldtsOpt: Parameters<typeof tldts.getSubdomain>[1] = {
|
||||||
allowPrivateDomains: true
|
allowPrivateDomains: true,
|
||||||
// detectIp: true
|
detectIp: true
|
||||||
};
|
};
|
||||||
|
|||||||
@ -575,7 +575,8 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
|
|||||||
}
|
}
|
||||||
|
|
||||||
const domain = normalizeDomain(sliced);
|
const domain = normalizeDomain(sliced);
|
||||||
if (domain) {
|
|
||||||
|
if (domain && domain === sliced) {
|
||||||
result[0] = domain;
|
result[0] = domain;
|
||||||
|
|
||||||
if (white) {
|
if (white) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user