Refactor fake-ip-filter to use external rule provider

Replaces the inline fake-ip-filter domain list with a reference to a new rule-set provider. Adds the 'fake-ip-filter' rule provider configuration pointing to an external .mrs file for improved maintainability.
This commit is contained in:
xixu-me committed 2025-06-15 18:45:56 +08:00
1 parent 54db90a86b
commit c434a152cb
1 file changed
+8 -14
+8 -14
View File
@@ -191,20 +191,7 @@ const dns = {
"enhanced-mode": "fake-ip",
"fake-ip-range": "198.18.0.1/16",
"fake-ip-filter-mode": "blacklist",
"fake-ip-filter": [
"+.lan",
"+.local",
"+.direct",
"time.*.com",
"ntp.*.com",
"+.msftconnecttest.com",
"+.msftncsi.com",
"localhost.ptlogin2.qq.com",
"localhost.sec.qq.com",
"localhost.work.weixin.qq.com",
"stun.*.*",
"stun.*.*.*",
],
"fake-ip-filter": ["rule-set:fake-ip-filter"],
"default-nameserver": [
"119.29.29.29",
"223.5.5.5",
@@ -507,6 +494,13 @@ function generateServiceRuleProviders(services, defaultConfig) {
}
const ruleProviders = {
"fake-ip-filter": {
...ruleProviderDefaults,
format: "mrs",
behavior: "domain",
url: "https://cdn.jsdelivr.net/gh/xixu-me/RFM@universal/fake-ip-filter.mrs",
path: "./rulesets/fake-ip-filter.mrs",
},
applications: {
...ruleProviderDefaults,
format: "yaml",