[proxy] use logs for getting proxy-env and proxy-config
It's ugly, but beats arg-parsing, inspecting the container and piecing the address together from exposed ports. We could just use the host from DOCKER_HOST, but that will fail in the case of a host with multiple IPs, where the proxy only listens on one.
This commit is contained in:
1 parent
fe6d05fccc
commit
2d5e362115
4 files changed
+51
-7
No files matched your search
+1
-1
@@ -108,7 +108,7 @@ func (proxy *Proxy) ListenAndServe() error {
|
||||
listener = tls.NewListener(listener, proxy.TLSConfig.Config)
|
||||
}
|
||||
|
||||
Info.Println("proxy listening")
|
||||
Info.Println("proxy listening on", proxy.ListenAddr)
|
||||
|
||||
return (&http.Server{Handler: proxy}).Serve(listener)
|
||||
}
|
||||
Reference in new issue
Block a user