Ver código fonte

Dial => DialContext

DarthSim 4 anos atrás
pai
commit
2765b71e9c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      download.go

+ 1 - 1
download.go

@@ -52,7 +52,7 @@ func initDownloading() error {
 		MaxIdleConns:        conf.Concurrency,
 		MaxIdleConnsPerHost: conf.Concurrency,
 		DisableCompression:  true,
-		Dial:                (&net.Dialer{KeepAlive: 600 * time.Second}).Dial,
+		DialContext:         (&net.Dialer{KeepAlive: 600 * time.Second}).DialContext,
 	}
 
 	if conf.IgnoreSslVerification {