1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Fixed port display

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2017-01-14 09:22:30 -08:00
parent 9797cf4b9c
commit db8b2ce62c

View File

@ -570,13 +570,13 @@ func (e *Echo) StartServer(s *http.Server) error {
if e.Listener == nil {
e.Listener = tcpKeepAliveListener{l.(*net.TCPListener)}
}
e.Logger.Printf("http server started on %s", e.Server.Addr)
e.Logger.Printf("http server started on %s", s.Addr)
return s.Serve(e.Listener)
}
if e.TLSListener == nil {
e.TLSListener = tls.NewListener(tcpKeepAliveListener{l.(*net.TCPListener)}, s.TLSConfig)
}
e.Logger.Printf(" ⇛ https server started on %s", e.Server.Addr)
e.Logger.Printf(" ⇛ https server started on %s", s.Addr)
return s.Serve(e.TLSListener)
}