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

fixed tls

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-11-05 07:33:44 -07:00
parent 00ae708f49
commit 97bf17556c

View File

@ -555,11 +555,11 @@ func (e *Echo) StartServer(s *http.Server) error {
if s.TLSConfig == nil {
e.server = gs
e.Color.Printf(" ⇛ http server started on %s\n", color.Green(s.Addr))
} else {
e.tlsServer = gs
e.Color.Printf(" ⇛ https server started on %s\n", color.Green(s.Addr))
return gs.ListenAndServe()
}
return gs.ListenAndServe()
e.tlsServer = gs
e.Color.Printf(" ⇛ https server started on %s\n", color.Green(s.Addr))
return gs.ListenAndServeTLSConfig(s.TLSConfig)
}
// Shutdown gracefully shutdown the HTTP server with timeout.