mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Fix: salvaged rules might not include all subdomains
This commit is contained in:
parent
0540c1de21
commit
6c31408703
@ -490,8 +490,10 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
|
|||||||
case 104: { /** h */
|
case 104: { /** h */
|
||||||
/** |http://x.o2.pl^ */
|
/** |http://x.o2.pl^ */
|
||||||
if (line.startsWith('http://', sliceStart)) {
|
if (line.startsWith('http://', sliceStart)) {
|
||||||
|
includeAllSubDomain = false;
|
||||||
sliceStart += 7;
|
sliceStart += 7;
|
||||||
} else if (line.startsWith('https://', sliceStart)) {
|
} else if (line.startsWith('https://', sliceStart)) {
|
||||||
|
includeAllSubDomain = false;
|
||||||
sliceStart += 8;
|
sliceStart += 8;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user