From 94e14328abab654b00e601460b65bccda9998307 Mon Sep 17 00:00:00 2001
From: Ludovic Fernandez <ldez@users.noreply.github.com>
Date: Sun, 1 Jul 2018 00:55:57 +0200
Subject: [PATCH] refactor: replace Dial by DialContext. (#585)

---
 acme/http.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acme/http.go b/acme/http.go
index e65a2382..a0637a0c 100644
--- a/acme/http.go
+++ b/acme/http.go
@@ -26,10 +26,10 @@ var (
 	HTTPClient = http.Client{
 		Transport: &http.Transport{
 			Proxy: http.ProxyFromEnvironment,
-			Dial: (&net.Dialer{
+			DialContext: (&net.Dialer{
 				Timeout:   30 * time.Second,
 				KeepAlive: 30 * time.Second,
-			}).Dial,
+			}).DialContext,
 			TLSHandshakeTimeout:   15 * time.Second,
 			ResponseHeaderTimeout: 15 * time.Second,
 			ExpectContinueTimeout: 1 * time.Second,