From 30ba712857b8f6b7758b92e1cfdbd8e012b66bfd Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 31 May 2017 09:41:16 +0200 Subject: [PATCH] agent: set proto to http since we are logging it now --- command/agent/agent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/agent/agent.go b/command/agent/agent.go index 5c6f85a863..6fc9a287d7 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -448,6 +448,7 @@ func (a *Agent) serveHTTP(l net.Listener, srv *HTTPServer) error { // we cannot just perform a type check since the compiler won't let // us. We might be able to use reflection but the fmt.Sprintf() hack // works just as well. + srv.proto = "http" if strings.Contains("*tls.listener", fmt.Sprintf("%T", l)) { srv.proto = "https" }