diff --git a/main.go b/main.go index caf9937..c07389d 100644 --- a/main.go +++ b/main.go @@ -125,7 +125,7 @@ func parseTLS(srv *Server, d *Directive) error { if err := child.ParseParams(&caURL); err != nil { return err } - srv.acmeManager.CA = caURL + srv.ACMEManager.CA = caURL default: return fmt.Errorf("unknown %q directive", child.Name) } diff --git a/server.go b/server.go index 276ca88..f9e5aab 100644 --- a/server.go +++ b/server.go @@ -16,8 +16,8 @@ type Server struct { Listeners map[string]*Listener // indexed by listening address Frontends []*Frontend ManagedNames []string + ACMEManager *certmagic.ACMEManager - acmeManager *certmagic.ACMEManager certmagic *certmagic.Config } @@ -33,7 +33,7 @@ func NewServer() *Server { return &Server{ Listeners: make(map[string]*Listener), - acmeManager: mgr, + ACMEManager: mgr, certmagic: cfg, } }