mirror of https://github.com/XTLS/Xray-core
Update system_dialer.go
parent
0799e3619b
commit
c639cb5344
|
@ -95,7 +95,9 @@ func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Address, dest ne
|
||||||
Count: -1,
|
Count: -1,
|
||||||
}
|
}
|
||||||
if sockopt != nil && (sockopt.TcpKeepAliveInterval != 0 || sockopt.TcpKeepAliveIdle != 0) {
|
if sockopt != nil && (sockopt.TcpKeepAliveInterval != 0 || sockopt.TcpKeepAliveIdle != 0) {
|
||||||
TCPKeepAliveConfig.Enable = false
|
TCPKeepAliveConfig = gonet.KeepAliveConfig {
|
||||||
|
Enable: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dialer := &net.Dialer{
|
dialer := &net.Dialer{
|
||||||
Timeout: time.Second * 16,
|
Timeout: time.Second * 16,
|
||||||
|
|
Loading…
Reference in New Issue