~netlandish/gobwebs

0848a1f821a0d8871e4f8f97b4f216469170d68f — Peter Sanchez 1 year, 3 months ago 32886cd
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 => 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) 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