mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 04:43:17 +00:00
87 lines
1.3 KiB
Markdown
87 lines
1.3 KiB
Markdown
### Inbound
|
|
|
|
```json
|
|
{
|
|
"enabled": true,
|
|
"padding": false,
|
|
"brutal": {}
|
|
}
|
|
```
|
|
|
|
### Outbound
|
|
|
|
```json
|
|
{
|
|
"enabled": true,
|
|
"protocol": "smux",
|
|
"max_connections": 4,
|
|
"min_streams": 4,
|
|
"max_streams": 0,
|
|
"padding": false,
|
|
"brutal": {}
|
|
}
|
|
```
|
|
|
|
|
|
### Inbound Fields
|
|
|
|
#### enabled
|
|
|
|
Enable multiplex support.
|
|
|
|
#### padding
|
|
|
|
If enabled, non-padded connections will be rejected.
|
|
|
|
#### brutal
|
|
|
|
See [TCP Brutal](/configuration/shared/tcp-brutal/) for details.
|
|
|
|
### Outbound Fields
|
|
|
|
#### enabled
|
|
|
|
Enable multiplex.
|
|
|
|
#### protocol
|
|
|
|
Multiplex protocol.
|
|
|
|
| Protocol | Description |
|
|
|----------|------------------------------------|
|
|
| smux | https://github.com/xtaci/smux |
|
|
| yamux | https://github.com/hashicorp/yamux |
|
|
| h2mux | https://golang.org/x/net/http2 |
|
|
|
|
h2mux is used by default.
|
|
|
|
#### max_connections
|
|
|
|
Maximum connections.
|
|
|
|
Conflict with `max_streams`.
|
|
|
|
#### min_streams
|
|
|
|
Minimum multiplexed streams in a connection before opening a new connection.
|
|
|
|
Conflict with `max_streams`.
|
|
|
|
#### max_streams
|
|
|
|
Maximum multiplexed streams in a connection before opening a new connection.
|
|
|
|
Conflict with `max_connections` and `min_streams`.
|
|
|
|
#### padding
|
|
|
|
!!! info
|
|
|
|
Requires sing-box server version 1.3-beta9 or later.
|
|
|
|
Enable padding.
|
|
|
|
#### brutal
|
|
|
|
See [TCP Brutal](/configuration/shared/tcp-brutal/) for details.
|