X-ui 及其衍生版接入教程
进入【面板设置】——【Xray相关设置】替换文件
请根据需求修改以下文件标注处,修改后请将注释行删除
config.json
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"dns": {
"servers": [
"1.1.1.1",
"8.8.8.8",
{
"address": "https+local://xxx.core.access.xxxxx.fun/dns-query",
"port": 53,
//如需多个流媒体或域名请按照每个字符串+"," 分隔 如 ["geosite:netflix","geosite:disney","domain:dddd.com"] 修改后请将此行删除
"domains": [
"geosite:netflix"
]
}
]
},
"stats": {}
}
最后更新于
这有帮助吗?