Skip to content

Commit 2274555

Browse files
wxiaoguangGiteaBot
authored andcommitted
Try to fix ACME directory problem (go-gitea#33072)
1 parent 8176867 commit 2274555

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)