diff --git a/client.go b/client.go index d1c8549a55..1c1b486820 100644 --- a/client.go +++ b/client.go @@ -1840,6 +1840,9 @@ func (c *HostClient) dialHostHard(dialTimeout time.Duration) (conn net.Conn, err dial := c.Dial if dialTimeout != 0 && dial == nil { dial = func(addr string) (net.Conn, error) { + if c.DialDualStack { + return DialDualStackTimeout(addr, dialTimeout) + } return DialTimeout(addr, dialTimeout) } }