unexport if posible

This commit is contained in:
6543 2021-12-05 16:24:26 +01:00
parent e6198e4ddd
commit 77e39b2213
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
7 changed files with 24 additions and 24 deletions

View file

@ -134,7 +134,7 @@ func TLSConfig(mainDomainSuffix []byte,
}
}
func CheckUserLimit(user string) error {
func checkUserLimit(user string) error {
userLimit, ok := acmeClientCertificateLimitPerUser[user]
if !ok {
// Each Codeberg user can only add 10 new domains per day.
@ -292,7 +292,7 @@ func obtainCert(acmeClient *lego.Client, domains []string, renew *certificate.Re
}
if res == nil {
if user != "" {
if err := CheckUserLimit(user); err != nil {
if err := checkUserLimit(user); err != nil {
return tls.Certificate{}, err
}
}