[proxy] add TLS to /status

This commit is contained in:
Paul Bellamy committed 2015-06-05 13:38:55 +01:00
1 parent b8595b9062
commit 127cffba6f
1 file changed
+8
+8
View File
@@ -111,6 +111,14 @@ func (proxy *Proxy) Status() string {
var buf bytes.Buffer
fmt.Fprintln(&buf, "Listen address is", proxy.ListenAddr)
fmt.Fprintln(&buf, "Docker address is", proxy.DockerAddr)
switch {
case proxy.TLSConfig.Verify:
fmt.Fprintln(&buf, "TLS verify")
case proxy.TLSConfig.Enabled:
fmt.Fprintln(&buf, "TLS on")
default:
fmt.Fprintln(&buf, "TLS off")
}
if proxy.WithDNS {
fmt.Fprintln(&buf, "DNS on")
} else {