Skip to content

Commit

Permalink
Revised Xray, sing-box configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Jan 31, 2025
1 parent 52d1fe3 commit ee34763
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/cores-configs/sing-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/cores-configs/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ const xrayConfigTemp = {
tag: "http-in",
},
{
listen: "127.0.0.1",
port: 10853,
protocol: "dokodemo-door",
settings: {
Expand Down

0 comments on commit ee34763

Please sign in to comment.