github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/docs/examples/clash-api.md (about) 1 ```json 2 { 3 "dns": { 4 "rules": [ 5 { 6 "domain": [ 7 "clash.razord.top", 8 "yacd.haishan.me" 9 ], 10 "server": "local" 11 }, 12 { 13 "clash_mode": "direct", 14 "server": "local" 15 } 16 ] 17 }, 18 "outbounds": [ 19 { 20 "type": "selector", 21 "tag": "default", 22 "outbounds": [ 23 "proxy-a", 24 "proxy-b" 25 ] 26 } 27 ], 28 "route": { 29 "rules": [ 30 { 31 "clash_mode": "direct", 32 "outbound": "direct" 33 }, 34 { 35 "domain": [ 36 "clash.razord.top", 37 "yacd.haishan.me" 38 ], 39 "outbound": "direct" 40 } 41 ], 42 "final": "default" 43 }, 44 "experimental": { 45 "clash_api": { 46 "external_controller": "127.0.0.1:9090", 47 "store_selected": true 48 } 49 } 50 } 51 52 ```