mirror of
https://github.com/labstack/echo.git
synced 2024-11-28 08:38:39 +02:00
Fixed port display
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
9797cf4b9c
commit
db8b2ce62c
4
echo.go
4
echo.go
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user