Update system_dialer.go

pull/4932/head
xqzr 2025-07-25 17:28:59 +08:00 committed by GitHub
parent 02b2305d6f
commit ba2f6cfd87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Address, dest ne
}
if sockopt != nil && (sockopt.TcpKeepAliveInterval != 0 || sockopt.TcpKeepAliveIdle != 0) {
TCPKeepAlive = time.Duration(-1)
TCPKeepAliveConfig.Enable = false
}
dialer := &net.Dialer{
Timeout: time.Second * 16,