add route setting

This commit is contained in:
2025-02-03 16:25:56 +08:00
parent 6797289988
commit c3dc374786
3 changed files with 28 additions and 3 deletions

26
config/local.json Executable file → Normal file
View File

@ -10,7 +10,7 @@
},
{
"port": 2802,
"listen": "127.0.0.1",
"listen": "0.0.0.0",
"protocol": "http"
},
{
@ -26,5 +26,27 @@
}
}
}
]
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}