[lxc-devel] [lxd/master] Make sure we always use the right dialer and proxy
stgraber on Github
lxc-bot at linuxcontainers.org
Tue Feb 16 16:39:32 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160216/6c14f8bb/attachment.bin>
-------------- next part --------------
From e9e91f601f41c19ae15db42e65350cf072b467fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 16 Feb 2016 11:08:42 -0500
Subject: [PATCH] Make sure we always use the right dialer and proxy
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
shared/network.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/shared/network.go b/shared/network.go
index daf5978..9bc29f0 100644
--- a/shared/network.go
+++ b/shared/network.go
@@ -43,6 +43,8 @@ func GetRemoteCertificate(address string) (*x509.Certificate, error) {
tlsConfig.InsecureSkipVerify = true
tr := &http.Transport{
TLSClientConfig: tlsConfig,
+ Dial: RFC3493Dialer,
+ Proxy: http.ProxyFromEnvironment,
}
// Connect
More information about the lxc-devel
mailing list