From e9c9a35a61385894754dd22bcf4e1bed4efe7744 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 1 Jan 2022 17:43:28 +0800 Subject: Upgrade certmagic from v0.14.1 to v0.15.2 (#18138) --- cmd/web_letsencrypt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/web_letsencrypt.go') diff --git a/cmd/web_letsencrypt.go b/cmd/web_letsencrypt.go index 066208457b..866b88f7c9 100644 --- a/cmd/web_letsencrypt.go +++ b/cmd/web_letsencrypt.go @@ -9,6 +9,7 @@ import ( "strconv" "strings" + "code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" @@ -47,7 +48,7 @@ func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) magic.Issuers = []certmagic.Issuer{myACME} // this obtains certificates or renews them if necessary - err := magic.ManageSync([]string{domain}) + err := magic.ManageSync(graceful.GetManager().HammerContext(), []string{domain}) if err != nil { return err } -- cgit v1.2.3