[lxc-devel] [lxd/master] lxd-bridge-proxy: Bump port number to 13128
stgraber on Github
lxc-bot at linuxcontainers.org
Sat Apr 2 03:05:35 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 408 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160402/3ff8a56f/attachment.bin>
-------------- next part --------------
From fb205c1925e4e95c1d92e6921641c431956e9164 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 1 Apr 2016 23:04:51 -0400
Subject: [PATCH] lxd-bridge-proxy: Bump port number to 13128
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This is to avoid accidental collisions with squid.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd-bridge/lxd-bridge | 2 +-
lxd-bridge/lxd-bridge-proxy/main.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxd-bridge/lxd-bridge b/lxd-bridge/lxd-bridge
index e02d2c6..75e6e88 100755
--- a/lxd-bridge/lxd-bridge
+++ b/lxd-bridge/lxd-bridge
@@ -168,7 +168,7 @@ start() {
fi
if [ "${HAS_IPV6}" = "true" ] && [ "${LXD_IPV6_PROXY}" = "true" ]; then
- PATH="${PATH}:$(dirname "${0}")" lxd-bridge-proxy --addr="[fe80::1%${LXD_BRIDGE}]:3128" &
+ PATH="${PATH}:$(dirname "${0}")" lxd-bridge-proxy --addr="[fe80::1%${LXD_BRIDGE}]:13128" &
PID=$!
echo "${PID}" > "${varrun}/proxy.pid"
fi
diff --git a/lxd-bridge/lxd-bridge-proxy/main.go b/lxd-bridge/lxd-bridge-proxy/main.go
index 4ac89a9..48b3a0b 100644
--- a/lxd-bridge/lxd-bridge-proxy/main.go
+++ b/lxd-bridge/lxd-bridge-proxy/main.go
@@ -18,7 +18,7 @@ func NewProxy() *httputil.ReverseProxy {
}
func main() {
- addr := flag.String("addr", "[fe80::1%lxdbr0]:3128", "proxy listen address")
+ addr := flag.String("addr", "[fe80::1%lxdbr0]:13128", "proxy listen address")
flag.Parse()
log.Fatal(http.ListenAndServe(*addr, NewProxy()))
More information about the lxc-devel
mailing list