mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
63 lines
855 B
Markdown
63 lines
855 B
Markdown
### Structure
|
|
|
|
```json
|
|
{
|
|
"type": "trojan",
|
|
"tag": "trojan-out",
|
|
|
|
"server": "127.0.0.1",
|
|
"server_port": 1080,
|
|
"password": "8JCsPssfgS8tiRwiMlhARg==",
|
|
"network": "tcp",
|
|
"tls": {},
|
|
"multiplex": {},
|
|
"transport": {},
|
|
|
|
... // Dial Fields
|
|
}
|
|
```
|
|
|
|
### Fields
|
|
|
|
#### 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).
|
|
|
|
#### multiplex
|
|
|
|
See [Multiplex](/configuration/shared/multiplex#outbound) for details.
|
|
|
|
#### transport
|
|
|
|
V2Ray Transport configuration, see [V2Ray Transport](/configuration/shared/v2ray-transport/).
|
|
|
|
### Dial Fields
|
|
|
|
See [Dial Fields](/configuration/shared/dial/) for details.
|