Update script.js

This commit is contained in:
xixu-me committed 2024-10-10 00:46:27 +08:00
1 parent 316fb81f1e
commit f2f1b1f708
1 file changed
+13
+13
View File
@@ -198,6 +198,18 @@ const sniffer = {
enable: false, enable: false,
}; };
// TUN
const tun = {
enable: true,
stack: "mixed",
"auto-route": true,
"auto-redirect": true,
"auto-detect-interface": true,
"dns-hijack": ["any:53", "tcp://any:53"],
"strict-route": true,
};
// Proxy Groups // Proxy Groups
const proxyGroupCommon = { const proxyGroupCommon = {
@@ -492,6 +504,7 @@ function main(config) {
config["dns"] = dns; config["dns"] = dns;
config["hosts"] = hosts; config["hosts"] = hosts;
config["sniffer"] = sniffer; config["sniffer"] = sniffer;
config["tun"] = tun;
config["proxy-groups"] = proxyGroups; config["proxy-groups"] = proxyGroups;
config["rules"] = rules; config["rules"] = rules;
config["rule-providers"] = ruleProviders; config["rule-providers"] = ruleProviders;