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

63 lines
857 B
Markdown
Raw Normal View History

2022-08-08 12:57:50 +00:00
### Structure
```json
{
2022-08-31 05:21:29 +00: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 12:57:50 +00:00
}
```
2022-08-31 05:21:29 +00:00
### Fields
2022-08-08 12:57:50 +00: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 12:57:50 +00:00
#### multiplex
Multiplex configuration, see [Multiplex](/configuration/shared/multiplex).
2022-08-08 12:57:50 +00:00
2022-08-23 15:15:56 +00:00
#### transport
V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport).
2022-08-08 12:57:50 +00:00
### Dial Fields
2022-08-31 05:21:29 +00:00
See [Dial Fields](/configuration/shared/dial) for details.