mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
agent: set proto to http since we are logging it now
This commit is contained in:
parent
ceda18366f
commit
30ba712857
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user