mirror of https://github.com/XTLS/Xray-core
revert
parent
c5a171eeb8
commit
65403b1e77
|
@ -2,7 +2,6 @@ package internet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
gonet "net"
|
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -88,13 +87,7 @@ 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)
|
||||||
lc.KeepAliveConfig = gonet.KeepAliveConfig{
|
lc.KeepAlive = -1
|
||||||
// Set Enable to true but all other fields to -1 to use system defaults (see https://pkg.go.dev/net#KeepAliveConfig)
|
|
||||||
Enable: true,
|
|
||||||
Idle: -1,
|
|
||||||
Interval: -1,
|
|
||||||
Count: -1,
|
|
||||||
}
|
|
||||||
if sockopt != nil {
|
if sockopt != nil {
|
||||||
if sockopt.TcpMptcp {
|
if sockopt.TcpMptcp {
|
||||||
lc.SetMultipathTCP(true)
|
lc.SetMultipathTCP(true)
|
||||||
|
|
Loading…
Reference in New Issue