From 5cdb1a411c242c582dfd0fe5d7909599404066c8 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 22 Oct 2024 18:36:44 +0800 Subject: [PATCH] Update META.js --- META.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/META.js b/META.js index 040014c..1e499a9 100644 --- a/META.js +++ b/META.js @@ -412,8 +412,7 @@ const rules = [ "RULE-SET,lancidr,DIRECT,no-resolve", "RULE-SET,cncidr,DIRECT,no-resolve", "RULE-SET,telegramcidr,Telegram,no-resolve", - "GEOIP,LAN,DIRECT,no-resolve", - "GEOIP,CN,DIRECT,no-resolve", + "RULE-SET,cn,DIRECT,no-resolve", "MATCH,Others", ]; @@ -545,6 +544,13 @@ const ruleProviders = { url: "https://cdn.jsdelivr.net/gh/\u004D\u0065\u0074\u0061\u0043\u0075\u0062\u0065\u0058/\u006D\u0065\u0074\u0061-rules-dat@\u006D\u0065\u0074\u0061/geo/geosite/google.mrs", path: "./ruleset/\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078/google.mrs", }, + cn: { + ...ruleProviderCommon, + format: "mrs", + behavior: "ipcidr", + url: "https://cdn.jsdelivr.net/gh/\u004D\u0065\u0074\u0061\u0043\u0075\u0062\u0065\u0058/\u006D\u0065\u0074\u0061-rules-dat@\u006D\u0065\u0074\u0061/geo/geoip/cn.mrs", + path: "./ruleset/\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078/cn.mrs", + }, ...createServiceRuleProviders(services, ruleProviderCommon), };