sing-box uses JSON for configuration files.
{
"log": {},
"dns": {},
"inbounds": {},
"outbounds": {},
"route": {},
"experimental": {}
}
Key | Format |
---|---|
log |
Log |
dns |
DNS |
inbounds |
Inbound |
outbounds |
Outbound |
route |
Route |
experimental |
Experimental |
$ sing-box check
$ sing-box format -w