mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Fix Clash Fake IP Filter
This commit is contained in:
parent
0be6745d67
commit
9944ba8549
@ -89,7 +89,16 @@ export const buildAlwaysRealIPModule = task(require.main === module, __filename)
|
||||
dns: {
|
||||
'fake-ip-filter': appendArrayInPlace(
|
||||
/** clash */
|
||||
dataset.flatMap(({ domains }) => domains.map((domain) => `+.${domain}`)),
|
||||
dataset.flatMap(({ domains }) => domains.map((domain) => {
|
||||
switch (domain[0]) {
|
||||
case '$':
|
||||
return domain.slice(1);
|
||||
case '+':
|
||||
return '+.' + domain.slice(1);
|
||||
default:
|
||||
return domain;
|
||||
}
|
||||
})),
|
||||
HOSTNAMES
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user