[proxy] add TLS to /status
This commit is contained in:
1 parent
b8595b9062
commit
127cffba6f
1 file changed
+8
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user