Sing-box 为什么是未来?
Sing-box 采用 Go 语言原生重构,具有极低的常驻内存(约 15MB)与高并发 UDP 吞吐能力,原生对 Hysteria 2、VLESS-Reality 等协议提供第一方支持,是软路由及 Linux 极客的终极选择。
config.json (Sing-box 官方模板)
{
"log": { "level": "info" },
"inbounds": [
{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 2080
}
],
"outbounds": [
{
"type": "selector",
"tag": "select",
"outbounds": ["flyingbird-auto", "direct"]
},
{
"type": "urltest",
"tag": "flyingbird-auto",
"outbounds": ["hk-01", "jp-01", "sg-01"],
"url": "https://www.gstatic.com/generate_204",
"interval": "3m"
},
{
"type": "direct",
"tag": "direct"
}
]
}