From ee34763d33c22dd23d39f3215ca6f9fc7de0cd1a Mon Sep 17 00:00:00 2001 From: bia-pain-bache Date: Fri, 31 Jan 2025 19:01:20 +0330 Subject: [PATCH] Revised Xray, sing-box configs. --- src/cores-configs/sing-box.js | 16 +++++++++++++--- src/cores-configs/xray.js | 1 - 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/cores-configs/sing-box.js b/src/cores-configs/sing-box.js index 0e200a8db..d474b3fe7 100644 --- a/src/cores-configs/sing-box.js +++ b/src/cores-configs/sing-box.js @@ -182,6 +182,10 @@ function buildSingBoxRoutingRules (proxySettings) { const customBypassRulesTotal = customBypassRules ? customBypassRules.split(',') : []; const customBlockRulesTotal = customBlockRules ? customBlockRules.split(',') : []; const defaultRules = [ + { + inbound: "dns-in", + outbound: "dns-out" + }, { protocol: "dns", outbound: "dns-out" @@ -752,6 +756,14 @@ const singboxConfigTemp = { independent_cache: true }, inbounds: [ + { + type: "direct", + tag: "dns-in", + listen: "0.0.0.0", + listen_port: 6450, + override_address: "1.1.1.1", + override_port: 53 + }, { type: "tun", tag: "tun-in", @@ -761,16 +773,14 @@ const singboxConfigTemp = { ], mtu: 9000, auto_route: true, - strict_route: true, stack: "mixed", - endpoint_independent_nat: true, sniff: true, sniff_override_destination: true }, { type: "mixed", tag: "mixed-in", - listen: "127.0.0.1", + listen: "0.0.0.0", listen_port: 2080, sniff: true, sniff_override_destination: false diff --git a/src/cores-configs/xray.js b/src/cores-configs/xray.js index f6880b94c..a17e6d648 100644 --- a/src/cores-configs/xray.js +++ b/src/cores-configs/xray.js @@ -936,7 +936,6 @@ const xrayConfigTemp = { tag: "http-in", }, { - listen: "127.0.0.1", port: 10853, protocol: "dokodemo-door", settings: {