mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 01:51:29 +00:00
63 lines
837 B
Markdown
63 lines
837 B
Markdown
### 结构
|
|
|
|
```json
|
|
{
|
|
"type": "trojan",
|
|
"tag": "trojan-out",
|
|
|
|
"server": "127.0.0.1",
|
|
"server_port": 1080,
|
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
|
"network": "tcp",
|
|
"tls": {},
|
|
"multiplex": {},
|
|
"transport": {},
|
|
|
|
... // 拨号字段
|
|
}
|
|
```
|
|
|
|
### 字段
|
|
|
|
#### server
|
|
|
|
==必填==
|
|
|
|
服务器地址。
|
|
|
|
#### server_port
|
|
|
|
==必填==
|
|
|
|
服务器端口。
|
|
|
|
#### password
|
|
|
|
==必填==
|
|
|
|
Trojan 密码。
|
|
|
|
#### network
|
|
|
|
启用的网络协议。
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
默认所有。
|
|
|
|
#### tls
|
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
|
|
|
#### multiplex
|
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#outbound)。
|
|
|
|
#### transport
|
|
|
|
V2Ray 传输配置,参阅 [V2Ray 传输层](/zh/configuration/shared/v2ray-transport)。
|
|
|
|
### 拨号字段
|
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|