Skip to main content

引言

sing-box 使用 JSON 作为配置文件格式。

结构​

{
"log": {},
"dns": {},
"inbounds": [],
"outbounds": [],
"route": {},
"experimental": {}
}

字段​

KeyFormat
log日志
dnsDNS
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