Skip to content

Commit

Permalink
fixed labstack#719
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Nov 12, 2016
1 parent 0fca54f commit 6ead4be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Example:
"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
"github.com/labstack/echo/middleware"
"net"
"net"
)
// Handler
Expand Down Expand Up @@ -523,8 +525,7 @@ func (e *Echo) StartTLS(address string, certFile, keyFile string) (err error) {
}

// StartAutoTLS starts the HTTPS server using certificates automatically from https://letsencrypt.org.
func (e *Echo) StartAutoTLS(hosts []string, cacheFile string) (err error) {
address := ":443"
func (e *Echo) StartAutoTLS(address string, hosts []string, cacheFile string) (err error) {
config := new(tls.Config)
config.GetCertificate = e.tlsManager.GetCertificate
e.tlsManager.SetHosts(hosts) // Added security
Expand Down

0 comments on commit 6ead4be

Please sign in to comment.