2022-08-24 21:02:28 +08:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 13:21:29 +08:00
|
|
|
"type": "trojan",
|
|
|
|
"tag": "trojan-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
|
|
|
"network": "tcp",
|
|
|
|
"tls": {},
|
|
|
|
"multiplex": {},
|
|
|
|
"transport": {},
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 21:02:28 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### 字段
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器地址。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器端口。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### password
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
Trojan 密码。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
启用的网络协议。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### multiplex
|
|
|
|
|
2023-11-08 12:09:22 +08:00
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#outbound)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### transport
|
|
|
|
|
2023-12-14 22:23:52 +08:00
|
|
|
V2Ray 传输配置,参阅 [V2Ray 传输层](/zh/configuration/shared/v2ray-transport/)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|