mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-30 15:07:04 +00:00
simplify
This commit is contained in:
@@ -110,9 +110,7 @@ func (dl *DefaultListener) Listen(ctx context.Context, addr net.Addr, sockopt *S
|
||||
lc.KeepAliveConfig.Enable = true
|
||||
lc.KeepAliveConfig.Interval = time.Duration(sockopt.TcpKeepAliveInterval) * time.Second
|
||||
}
|
||||
if sockopt.TcpMptcp {
|
||||
lc.SetMultipathTCP(true)
|
||||
}
|
||||
lc.SetMultipathTCP(sockopt.TcpMptcp)
|
||||
}
|
||||
case *net.UnixAddr:
|
||||
lc.Control = nil
|
||||
|
||||
Reference in New Issue
Block a user