mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-30 06:56:59 +00:00
Disable default MPTCP listener
This commit is contained in:
@@ -89,6 +89,9 @@ func (dl *DefaultListener) Listen(ctx context.Context, addr net.Addr, sockopt *S
|
||||
lc.Control = getControlFunc(ctx, sockopt, dl.controllers)
|
||||
// default disable keepalive
|
||||
lc.KeepAlive = -1
|
||||
// MPTCP is enabled by default golang listener
|
||||
// due to CVE-2026-98432, MPTCP should be disabled by default
|
||||
lc.SetMultipathTCP(false)
|
||||
if sockopt != nil {
|
||||
if sockopt.TcpKeepAliveIdle*sockopt.TcpKeepAliveInterval < 0 {
|
||||
return nil, errors.New("invalid TcpKeepAliveIdle or TcpKeepAliveInterval value: ", sockopt.TcpKeepAliveIdle, " ", sockopt.TcpKeepAliveInterval)
|
||||
|
||||
Reference in New Issue
Block a user