mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
fixed tls
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
00ae708f49
commit
97bf17556c
8
echo.go
8
echo.go
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user