We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af96aa commit 5d32bc7Copy full SHA for 5d32bc7
server/server.go
@@ -251,7 +251,7 @@ func (s *Server) WithHTTP(o HTTPOptions) (err error) {
251
ClientSessionCache: tls.NewLRUClientSessionCache(-1),
252
}
253
var acmeHTTPHandler func(fallback http.Handler) http.Handler
254
- if s.acmeCertsDir != "" {
+ if s.acmeCertsDir != "" && o.ListenTLS != "" {
255
certManager := autocert.Manager{
256
Prompt: autocert.AcceptTOS,
257
Cache: autocert.DirCache(s.acmeCertsDir),
0 commit comments