mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +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] = {
|
||||
allowPrivateDomains: true
|
||||
// detectIp: true
|
||||
allowPrivateDomains: true,
|
||||
detectIp: true
|
||||
};
|
||||
|
||||
@ -575,7 +575,8 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
|
||||
}
|
||||
|
||||
const domain = normalizeDomain(sliced);
|
||||
if (domain) {
|
||||
|
||||
if (domain && domain === sliced) {
|
||||
result[0] = domain;
|
||||
|
||||
if (white) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user