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
+2 -1
View File
@@ -24,7 +24,8 @@ type WebdavUploader struct {
var netTransport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{
Timeout: 60 * time.Second,
Timeout: 60 * time.Second,
DualStack: true,
}).Dial,
TLSHandshakeTimeout: 5 * time.Second,
}