sing-box/docs/configuration/outbound/trojan.md

63 lines
857 B
Markdown
Raw Permalink Normal View History

2022-08-08 20:57:50 +08:00
### Structure
```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": {},
... // Dial Fields
2022-08-08 20:57:50 +08:00
}
```
2022-08-31 13:21:29 +08:00
### Fields
2022-08-08 20:57:50 +08:00
#### server
==Required==
The server address.
#### server_port
==Required==
The server port.
#### password
==Required==
The Trojan password.
#### network
Enabled network
One of `tcp` `udp`.
Both is enabled by default.
#### tls
TLS configuration, see [TLS](/configuration/shared/tls/#outbound).
2022-08-08 20:57:50 +08:00
#### multiplex
Multiplex configuration, see [Multiplex](/configuration/shared/multiplex).
2022-08-08 20:57:50 +08:00
2022-08-23 23:15:56 +08:00
#### transport
V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport).
2022-08-08 20:57:50 +08:00
### Dial Fields
2022-08-31 13:21:29 +08:00
See [Dial Fields](/configuration/shared/dial) for details.