2023-11-08 04:09:22 +00:00
|
|
|
### Inbound
|
2022-07-30 10:12:24 +00:00
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"enabled": true,
|
|
|
|
"padding": false,
|
|
|
|
"brutal": {}
|
|
|
|
}
|
|
|
|
```
|
2022-07-30 10:12:24 +00:00
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
### Outbound
|
2022-07-30 10:12:24 +00:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"enabled": true,
|
2022-08-04 01:11:39 +00:00
|
|
|
"protocol": "smux",
|
2022-07-30 10:12:24 +00:00
|
|
|
"max_connections": 4,
|
|
|
|
"min_streams": 4,
|
2023-04-20 03:16:22 +00:00
|
|
|
"max_streams": 0,
|
2023-11-08 04:09:22 +00:00
|
|
|
"padding": false,
|
|
|
|
"brutal": {}
|
2022-07-30 10:12:24 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
|
|
|
|
### 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
|
2022-07-30 10:12:24 +00:00
|
|
|
|
|
|
|
#### enabled
|
|
|
|
|
|
|
|
Enable multiplex.
|
|
|
|
|
2022-08-03 13:51:34 +00:00
|
|
|
#### protocol
|
|
|
|
|
|
|
|
Multiplex protocol.
|
|
|
|
|
|
|
|
| Protocol | Description |
|
|
|
|
|----------|------------------------------------|
|
|
|
|
| smux | https://github.com/xtaci/smux |
|
2022-08-04 01:11:39 +00:00
|
|
|
| yamux | https://github.com/hashicorp/yamux |
|
2023-04-20 03:16:22 +00:00
|
|
|
| h2mux | https://golang.org/x/net/http2 |
|
2022-08-03 13:51:34 +00:00
|
|
|
|
2023-04-20 03:16:22 +00:00
|
|
|
h2mux is used by default.
|
2022-08-03 13:51:34 +00:00
|
|
|
|
2022-07-30 10:12:24 +00:00
|
|
|
#### max_connections
|
|
|
|
|
|
|
|
Maximum connections.
|
|
|
|
|
|
|
|
Conflict with `max_streams`.
|
|
|
|
|
|
|
|
#### min_streams
|
|
|
|
|
|
|
|
Minimum multiplexed streams in a connection before opening a new connection.
|
|
|
|
|
2022-08-11 02:06:10 +00:00
|
|
|
Conflict with `max_streams`.
|
2022-07-30 10:12:24 +00:00
|
|
|
|
|
|
|
#### max_streams
|
|
|
|
|
|
|
|
Maximum multiplexed streams in a connection before opening a new connection.
|
|
|
|
|
|
|
|
Conflict with `max_connections` and `min_streams`.
|
2023-04-20 03:16:22 +00:00
|
|
|
|
|
|
|
#### padding
|
|
|
|
|
|
|
|
!!! info
|
|
|
|
|
|
|
|
Requires sing-box server version 1.3-beta9 or later.
|
|
|
|
|
|
|
|
Enable padding.
|
|
|
|
|
2023-11-08 04:09:22 +00:00
|
|
|
#### brutal
|
|
|
|
|
|
|
|
See [TCP Brutal](/configuration/shared/tcp-brutal) for details.
|