Skip to content

Commit

Permalink
fixed tls
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <vr@labstack.com>
  • Loading branch information
vishr committed Nov 5, 2016
1 parent 00ae708 commit 97bf175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 97bf175

Please sign in to comment.