From c03a2caac2491de41bc5bde489dc228d0a5e6536 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 9 Dec 2016 15:22:45 +0000 Subject: [PATCH] Allow docker0 to have >1 IP address and log the one we end up using --- proxy/proxy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index be71befd..ab3c7825 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -152,10 +152,11 @@ func NewProxy(c Config) (*Proxy, error) { if err != nil { return nil, err } - if len(netDev.CIDRs) != 1 { + if len(netDev.CIDRs) < 1 { return nil, fmt.Errorf("Could not obtain address of %s", c.DockerBridge) } p.dockerBridgeIP = netDev.CIDRs[0].IP.String() + Log.Infof("Using docker bridge IP for DNS: %v", p.dockerBridgeIP) } p.hostnameMatchRegexp, err = regexp.Compile(c.HostnameMatch)