Update script.js
This commit is contained in:
1 parent
ad0f198f18
commit
afaa5efad8
1 file changed
+6
-1
@@ -181,13 +181,17 @@ const dns = {
|
||||
"localhost.work.weixin.qq.com",
|
||||
],
|
||||
"default-nameserver": ["223.5.5.5", "119.29.29.29", "1.1.1.1", "8.8.8.8"],
|
||||
nameserver: [...chineseNameservers, ...internationalNameservers],
|
||||
"nameserver-policy": {
|
||||
"geosite:private,cn,geolocation-cn": chineseNameservers,
|
||||
"geosite:geolocation-!cn": internationalNameservers,
|
||||
},
|
||||
nameserver: [...chineseNameservers, ...internationalNameservers],
|
||||
};
|
||||
|
||||
// Hosts
|
||||
|
||||
const hosts = {};
|
||||
|
||||
// Proxy Groups
|
||||
|
||||
const proxyGroupCommon = {
|
||||
@@ -480,6 +484,7 @@ function main(config) {
|
||||
throw new Error("No proxy was found in the profile");
|
||||
for (const key in generalConfig) config[key] = generalConfig[key];
|
||||
config["dns"] = dns;
|
||||
config["hosts"] = hosts;
|
||||
config["proxy-groups"] = proxyGroups;
|
||||
config["rules"] = rules;
|
||||
config["rule-providers"] = ruleProviders;
|
||||
|
||||
Reference in new issue
Block a user