mirror of
https://github.com/labstack/echo.git
synced 2025-07-17 01:43:02 +02:00
8
echo.go
8
echo.go
@ -555,11 +555,11 @@ func (e *Echo) StartServer(s *http.Server) error {
|
|||||||
if s.TLSConfig == nil {
|
if s.TLSConfig == nil {
|
||||||
e.server = gs
|
e.server = gs
|
||||||
e.Color.Printf(" ⇛ http server started on %s\n", color.Green(s.Addr))
|
e.Color.Printf(" ⇛ http server started on %s\n", color.Green(s.Addr))
|
||||||
} else {
|
return gs.ListenAndServe()
|
||||||
e.tlsServer = gs
|
|
||||||
e.Color.Printf(" ⇛ https server started on %s\n", color.Green(s.Addr))
|
|
||||||
}
|
}
|
||||||
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.
|
// Shutdown gracefully shutdown the HTTP server with timeout.
|
||||||
|
Reference in New Issue
Block a user