github.com/sagernet/sing-box@v1.2.7/docs/configuration/shared/multiplex.zh.md (about) 1 ### 服务器要求 2 3 `sing-box` :) 4 5 ### 结构 6 7 ```json 8 { 9 "enabled": true, 10 "protocol": "smux", 11 "max_connections": 4, 12 "min_streams": 4, 13 "max_streams": 0 14 } 15 ``` 16 17 ### 字段 18 19 #### enabled 20 21 启用多路复用。 22 23 #### protocol 24 25 多路复用协议 26 27 | 协议 | 描述 | 28 |-------|------------------------------------| 29 | smux | https://github.com/xtaci/smux | 30 | yamux | https://github.com/hashicorp/yamux | 31 32 默认使用 SMux。 33 34 #### max_connections 35 36 最大连接数量。 37 38 与 `max_streams` 冲突。 39 40 #### min_streams 41 42 在打开新连接之前,连接中的最小多路复用流数量。 43 44 与 `max_streams` 冲突。 45 46 #### max_streams 47 48 在打开新连接之前,连接中的最大多路复用流数量。 49 50 与 `max_connections` 和 `min_streams` 冲突。