修复安装脚本

This commit is contained in:
CN-JS-HuiBai
2026-04-14 23:20:33 +08:00
parent 2619ce388c
commit 7a9a36d04f

View File

@@ -140,6 +140,16 @@ cat > "$CONFIG_FILE" <<EOF
"path": "/var/lib/sing-box/cache.db"
}
},
"dns": {
"servers": [
{
"tag": "dns-remote",
"type": "udp",
"server": "1.1.1.1",
"server_port": 53
}
]
},
"services": [
{
"type": "xboard",
@@ -175,21 +185,17 @@ cat > "$CONFIG_FILE" <<EOF
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"inbound": "vless-in",
"action": "sniff"
"protocol": "dns",
"action": "hijack-dns"
},
{
"protocol": "dns",
"outbound": "dns-out"
"inbound": "vless-in",
"action": "sniff"
}
]
}