Merge pull request #9367 from bobrik/dualstack

Enable dualstack in every net.Dialer, fixes #9364
This commit is contained in:
Carl Bergquist
2017-09-28 11:15:49 +02:00
committed by GitHub
6 changed files with 8 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ func (ds *DataSource) GetHttpTransport() (*http.Transport, error) {
Dial: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
}).Dial,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,