Skip to content

Commit

Permalink
Update META.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xixu-me committed Oct 26, 2024
1 parent 11de6b2 commit 8290d42
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions META.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ const internationalNameservers = [
"https://doh.dns.apple.com/dns-query",
"https://cloudflare-dns.com/dns-query",
"https://common.dot.dns.yandex.net/dns-query",
"https://unfiltered.adguard-dns.com/dns-query",
];

const adguardDefaultNameservers = [
"quic://dns.adguard-dns.com:784",
"https://dns.adguard-dns.com/dns-query",
];

const adguardFamilyNameservers = [
"quic://family.adguard-dns.com:784",
"https://family.adguard-dns.com/dns-query",
];

const dns = {
Expand Down Expand Up @@ -239,15 +250,11 @@ const dns = {
],
"default-nameserver": ["223.5.5.5", "119.29.29.29", "1.1.1.1", "8.8.8.8"],
"proxy-server-nameserver": [...chineseNameservers],
// "nameserver-policy": {
// "rule-set:private,direct,geolocation-cn": chineseNameservers,
// "rule-set:proxy,tld-!cn": internationalNameservers,
// },
nameserver: [
// ...chineseNameservers,
// ...internationalNameservers,
...adguardDefaultNameservers,
],
"nameserver-policy": {
"rule-set:private,direct,geolocation-cn": chineseNameservers,
"rule-set:proxy,tld-!cn": internationalNameservers,
},
nameserver: [...chineseNameservers, ...internationalNameservers],
};

// Hosts
Expand Down Expand Up @@ -569,13 +576,13 @@ const ruleProviders = {
url: "https://cdn.jsdelivr.net/gh/Project-META/rules-mrs@release/tld-!cn.mrs",
path: "./ruleset/project-meta/tld-!cn.mrs",
},
// "geolocation-cn": {
// ...ruleProviderDefaults,
// format: "mrs",
// behavior: "domain",
// 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/geolocation-cn.mrs",
// path: "./ruleset/\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078/geolocation-cn.mrs",
// },
"geolocation-cn": {
...ruleProviderDefaults,
format: "mrs",
behavior: "domain",
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/geolocation-cn.mrs",
path: "./ruleset/\u006D\u0065\u0074\u0061\u0063\u0075\u0062\u0065\u0078/geolocation-cn.mrs",
},
"win-spy": {
...ruleProviderDefaults,
format: "mrs",
Expand Down

0 comments on commit 8290d42

Please sign in to comment.