sing-box 使用 JSON 作为配置文件格式。
{
"log": {},
"dns": {},
"endpoints": [],
"inbounds": [],
"outbounds": [],
"route": {},
"experimental": {}
}
Key | Format |
---|---|
log |
日志 |
dns |
DNS |
endpoints |
端点 |
inbounds |
入站 |
outbounds |
出站 |
route |
路由 |
experimental |
实验性 |
sing-box check
sing-box format -w -c config.json -D config_directory
sing-box merge output.json -c config.json -D config_directory