XrayR-doc/gong-neng-shuo-ming/zi-ding-yi-chu-kou-gong-neng-shuo-ming.md
2022-04-27 14:21:41 +10:00

749 B
Raw Blame History

自定义出口功能说明

XrayR完整支持全部的Xray-core所提供的自定义出口功能具体启用方式如下

  1. 编写 custom_outbound.json文件此配置与Xray 出口配置完全相同,请查看:https://xtls.github.io/config/outbound.html获取帮助。
  2. config.yml中配置OutboundConfigPath为custom_outbound.json的路径。

自定义出口功能示例

[
    {
        "tag": "IPv4_out",
        "protocol": "freedom"
    },
    {
        "tag": "IPv6_out",
        "protocol": "freedom",
        "settings": {
            "domainStrategy": "UseIPv6"
        }
    },
    {
        "protocol": "blackhole",
        "tag": "block"
    }
]