diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-01-01 17:43:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 17:43:28 +0800 |
commit | e9c9a35a61385894754dd22bcf4e1bed4efe7744 (patch) | |
tree | 3d9e08587a05fcb76a53565cf7421eda97a7d963 /cmd | |
parent | 385dc6a9927bd4bb66cb2a62e3f7e5643b973ee9 (diff) | |
download | gitea-e9c9a35a61385894754dd22bcf4e1bed4efe7744.tar.gz gitea-e9c9a35a61385894754dd22bcf4e1bed4efe7744.zip |
Upgrade certmagic from v0.14.1 to v0.15.2 (#18138)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web_letsencrypt.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |