mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
distribution: remove use of deprecated dial.DualStack
From the field's description [1]: DualStack previously enabled RFC 6555 Fast Fallback support, also known as "Happy Eyeballs", in which IPv4 is tried soon if IPv6 appears to be misconfigured and hanging. Deprecated: Fast Fallback is enabled by default. To disable, set FallbackDelay to a negative value. This field was deprecated inefc185029b
, which is included in Go 1.12beta1 and up. [1]:2ebe77a2fd/src/net/dial.go (L54-L61)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
dc8fb8f03b
commit
ff408210da
2 changed files with 0 additions and 2 deletions
|
@ -68,7 +68,6 @@ func NewV2Repository(
|
|||
direct := &net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
DualStack: true,
|
||||
}
|
||||
|
||||
// TODO(dmcgowan): Call close idle connections when complete, use keep alive
|
||||
|
|
|
@ -175,7 +175,6 @@ func NewTransport(tlsConfig *tls.Config) *http.Transport {
|
|||
direct := &net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
DualStack: true,
|
||||
}
|
||||
|
||||
base := &http.Transport{
|
||||
|
|
Loading…
Reference in a new issue