pull/4932/head
xqzr 2025-07-25 16:34:28 +08:00 committed by GitHub
parent c42531eb6a
commit 88e76efee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Address, dest ne
if sockopt != nil && (sockopt.TcpKeepAliveInterval != 0 || sockopt.TcpKeepAliveIdle != 0) {
TCPKeepAliveConfig = gonet.KeepAliveConfig {
Enable: false,
Idle: -1,
Interval: -1,
Count: -1,
}
}
dialer := &net.Dialer{