[lxc-devel] [lxd/master] Fix crash in lxd-bridge-proxy

stgraber on Github lxc-bot at linuxcontainers.org
Fri Sep 9 17:00:04 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/20160909/9d41efa6/attachment.bin>
-------------- next part --------------
From 1e982b9472d106cbb7ba7262f458f508a78e597d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 9 Sep 2016 12:59:44 -0400
Subject: [PATCH] Fix crash in lxd-bridge-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>
---
 lxd-bridge/lxd-bridge-proxy/main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd-bridge/lxd-bridge-proxy/main.go b/lxd-bridge/lxd-bridge-proxy/main.go
index a73b74e..d680439 100644
--- a/lxd-bridge/lxd-bridge-proxy/main.go
+++ b/lxd-bridge/lxd-bridge-proxy/main.go
@@ -11,5 +11,5 @@ func main() {
 	addr := flag.String("addr", "[fe80::1%lxdbr0]:13128", "proxy listen address")
 	flag.Parse()
 
-	log.Fatal(http.ListenAndServe(*addr, &httputil.ReverseProxy{}))
+	log.Fatal(http.ListenAndServe(*addr, &httputil.ReverseProxy{Director: func(req *http.Request) {}}))
 }


More information about the lxc-devel mailing list