2022-04-27 14:21:41 +10:00

47 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 对接Trojan
| 协议 | 支持情况 | 支持协议 |
| :--- | :--- | :--- |
| Trojan | √ | tcp, grpc |
## SSpanel-uim 节点地址格式
```text
域名或IP;port=用户连接端口#监听端口|host=xx
```
## tcp示例
```text
示例gz.aaa.com;port=443|host=gz.aaa.com
```
## grpc示例
使用trojan+grpc请升级sspanel至[Anankke/SSPanel-Uim@8f68b63](https://github.com/Anankke/SSPanel-Uim/commit/8f68b6360baf9f6624e1158e3cae81d93d1db107)
```text
示例gz.aaa.com;port=443|host=gz.aaa.com|grpc=1|servicename=mygrpc
```
## 中转示例
用户连接443XrayR监听12345
```text
示例gz.aaa.com;port=443#12345|host=hk.aaa.com
```
## 启用xtls **\(此项为实验性功能\)**
sspanel升级到此版本[Anankke/SSPanel-Uim@8f68b63](https://github.com/Anankke/SSPanel-Uim/commit/8f68b6360baf9f6624e1158e3cae81d93d1db107)后支持xtls订阅下发
将任意协议配置中添加`enable_xtls=true`如果xtls有流控flow则在最后增加: `flow=flow-vlaue`
```text
示例gz.aaa.com;port=443|host=gz.aaa.com|enable_xtls=true|flow=xtls-rprx-direct
```
同时在本地设置文件将`EnableXTLS`设为true。 配置文件详见:[配置文件说明](https://github.com/XrayR-project/XrayR-doc/tree/af55d4cc45735ca8d00491aa97f8cbbd97c8faf4/sspanel/config/README.md)