Make autocert.Manager a pointer because of sync.Mutex being copied
1 files changed, 2 insertions(+), 2 deletions(-)

M server/server.go
M server/server.go +2 -2
@@ 86,7 86,7 @@ type Server struct {
 
 	e        *echo.Echo
 	ai       *appInfo
-	certman  autocert.Manager
+	certman  *autocert.Manager
 	autocert bool
 	csrfSkip []string
 

          
@@ 571,7 571,7 @@ func (s *Server) DefaultMiddlewareWithCo
 }
 
 // WithCertManager adds an autocert.Manager to be used for auto TLS
-func (s *Server) WithCertManager(cm autocert.Manager) *Server {
+func (s *Server) WithCertManager(cm *autocert.Manager) *Server {
 	s.certman = cm
 	s.autocert = true
 	return s