Skip to content

Commit

Permalink
Using tls-alpn for auto tls
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Nov 9, 2018
1 parent ba1891b commit ba46ff8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,6 @@ func (e *Echo) StartTLS(address string, certFile, keyFile string) (err error) {

// StartAutoTLS starts an HTTPS server using certificates automatically installed from https://letsencrypt.org.
func (e *Echo) StartAutoTLS(address string) error {
if e.Listener == nil {
go http.ListenAndServe(":http", e.AutoTLSManager.HTTPHandler(nil))
}

s := e.TLSServer
s.TLSConfig = new(tls.Config)
s.TLSConfig.GetCertificate = e.AutoTLSManager.GetCertificate
Expand Down

0 comments on commit ba46ff8

Please sign in to comment.