From ba46ff80a41623647fe4a40ba959afa18845c136 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Thu, 8 Nov 2018 19:17:59 -0800 Subject: [PATCH] Using tls-alpn for auto tls Signed-off-by: Vishal Rana --- echo.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/echo.go b/echo.go index 8cc91b2d1..caf3fa358 100644 --- a/echo.go +++ b/echo.go @@ -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