From 0848a1f821a0d8871e4f8f97b4f216469170d68f Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 4 Aug 2023 18:48:15 -0600 Subject: [PATCH] Make autocert.Manager a pointer because of sync.Mutex being copied --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index a8bac4a..b3f57bf 100644 --- a/server/server.go +++ b/server/server.go @@ -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) DefaultMiddlewareWithConfig(conf *MiddlewareConfig) *Server { } // 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 -- 2.45.2