Skip to content

Commit

Permalink
v5: stream: add mptcp to socketSettings
Browse files Browse the repository at this point in the history
Document the Multipath TCP support introduced with v2ray-core v5.17.0.

Signed-off-by: Arınç ÜNAL <[email protected]>
  • Loading branch information
arinc9 authored and xiaokangwang committed Sep 1, 2024
1 parent b1c9f99 commit 47d27ac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/en_US/v5/config/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ Controls data source for Application-Layer Protocol Negotiation (ALPN) extension
"tcpFastOpenQueueLength": 4096,
"tproxy": "off",
"tcpKeepAliveInterval": 0,
"bindToDevice": "eth0"
"bindToDevice": "eth0",
"mptcp": false
}
```

Expand Down Expand Up @@ -215,3 +216,12 @@ The interval in seconds between sending TCP keep-alive packets (only for Linux).
> `bindToDevice`: string
Bind the connection to the specified network device (Linux: v5.0.6+, Windows/Darwin: v5.2.0+).

> `mptcp`: true | false
Whether to enable Multipath TCP (only for Linux).

* `true`: MPTCP is turned on. If the host on the other side doesn't support MPTCP, MPTCP will fall back to using TCP.
* `false`: MPTCP is turned off.

When this item does not exist, the system default setting is used. Can be used for inbound and outbound connections.
12 changes: 11 additions & 1 deletion docs/v5/config/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ uTLS 是一个修改版本的 TLS 实现。 这个项目通过模仿常用 TLS
"tcpFastOpenQueueLength": 4096,
"tproxy": "off",
"tcpKeepAliveInterval": 0,
"bindToDevice": "eth0"
"bindToDevice": "eth0",
"mptcp": false
}
```

Expand Down Expand Up @@ -224,3 +225,12 @@ TCP 保持活跃的数据包的发送间隔,以秒为单位(仅适用于 Lin
> `bindToDevice`: string
将连接绑定到指定的网络设备(Linux: v5.0.6+, Windows/Darwin: v5.2.0+)。

> `mptcp`: true | false
是否启用多路径TCP(仅适用于Linux)。

* `true`: 打开 MPTCP 。如果另一端的主机不支持 MPTCP,MPTCP 将回退为普通 TCP。
* `false`: 关闭 MPTCP 。

当此项不存在时,将使用系统默认设置。可用于入站和出站连接。

0 comments on commit 47d27ac

Please sign in to comment.