agent: set proto to http since we are logging it now

pull/3095/head
Frank Schroeder 2017-05-31 09:41:16 +02:00
parent ceda18366f
commit 30ba712857
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 0 deletions

View File

@ -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 // 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 // us. We might be able to use reflection but the fmt.Sprintf() hack
// works just as well. // works just as well.
srv.proto = "http"
if strings.Contains("*tls.listener", fmt.Sprintf("%T", l)) { if strings.Contains("*tls.listener", fmt.Sprintf("%T", l)) {
srv.proto = "https" srv.proto = "https"
} }