From afaa5efad8bcaf7bd4d36cdd30b3127a0f322128 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Thu, 10 Oct 2024 00:18:14 +0800 Subject: [PATCH] Update script.js --- script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 3639e06..033c785 100644 --- a/script.js +++ b/script.js @@ -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;