mirror of https://github.com/XTLS/Xray-core
Update system_listener.go
parent
9d15ecf1f9
commit
59daf8d87f
|
@ -88,10 +88,8 @@ func (dl *DefaultListener) Listen(ctx context.Context, addr net.Addr, sockopt *S
|
||||||
network = addr.Network()
|
network = addr.Network()
|
||||||
address = addr.String()
|
address = addr.String()
|
||||||
lc.Control = getControlFunc(ctx, sockopt, dl.controllers)
|
lc.Control = getControlFunc(ctx, sockopt, dl.controllers)
|
||||||
if sockopt != nil {
|
|
||||||
if sockopt.TcpKeepAliveInterval != 0 || sockopt.TcpKeepAliveIdle != 0 {
|
|
||||||
lc.KeepAlive = time.Duration(-1)
|
lc.KeepAlive = time.Duration(-1)
|
||||||
}
|
if sockopt != nil {
|
||||||
if sockopt.TcpMptcp {
|
if sockopt.TcpMptcp {
|
||||||
lc.SetMultipathTCP(true)
|
lc.SetMultipathTCP(true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue