remove DualStack field from check TCP #12629 (#12630)

This commit is contained in:
Fulvio 2022-03-29 20:56:01 +02:00 committed by GitHub
parent 64e1501bda
commit b94bbf7f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -644,8 +644,7 @@ func (c *CheckTCP) Start() {
if c.dialer == nil {
// Create the socket dialer
c.dialer = &net.Dialer{
Timeout: 10 * time.Second,
DualStack: true,
Timeout: 10 * time.Second,
}
if c.Timeout > 0 {
c.dialer.Timeout = c.Timeout