Skip to content

Commit

Permalink
Fixed Clash DNS.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Nov 9, 2024
1 parent eda4e3b commit 5ccc058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cores-configs/clash.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ async function buildClashDNS (proxySettings, isChain, isWarp) {
const isIPv6 = (enableIPv6 && !isWarp) || (warpEnableIPv6 && isWarp);
const isBypass = bypassIran || bypassChina || bypassRussia;
const bypassRules = [
{ rule: bypassIran, geosite: "category-ir" },
{ rule: bypassIran, geosite: "ir" },
{ rule: bypassChina, geosite: "cn" },
{ rule: bypassRussia, geosite: "category-ru" }
{ rule: bypassRussia, geosite: "ru" }
];

const dns = {
Expand Down Expand Up @@ -58,7 +58,7 @@ async function buildClashDNS (proxySettings, isChain, isWarp) {

dns["nameserver-policy"] = {
...dns["nameserver-policy"],
[`geosite:${geosites.join(',')}`]: [`${localDNS}#DIRECT`]
[`rule-set:${geosites.join(',')}`]: [`${localDNS}#DIRECT`]
};
}

Expand Down

0 comments on commit 5ccc058

Please sign in to comment.