Skip to content

Commit d371aa3

Browse files
GiteaBotwxiaoguang
andauthored
Try to fix ACME directory problem (#33072) (#33077)
Backport #33072 by wxiaoguang Haven't really confirmed, but I think it might fix #32191 Co-authored-by: wxiaoguang <[email protected]>
1 parent 8176867 commit d371aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/web_acme.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func runACME(listenAddr string, m http.Handler) error {
5454
altTLSALPNPort = p
5555
}
5656

57-
magic := certmagic.NewDefault()
57+
magic := &certmagic.Default
5858
magic.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory}
5959
// Try to use private CA root if provided, otherwise defaults to system's trust
6060
var certPool *x509.CertPool

0 commit comments

Comments
 (0)