mirror of
https://github.com/SukkaW/Surge.git
synced 2026-03-15 15:36:42 +08:00
Fix: salvaged adgaurd rules should match original domain
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user