I forgot the wildcard in getDomainOwnershipClaims

This commit is contained in:
Melon 2023-10-27 12:54:16 +01:00
parent 754fd2d396
commit c91f1dd2fc
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -89,7 +89,7 @@ func acmeChallengeManage(verify mjwt.Verifier, domains utils.DomainProvider, acm
// getDomainOwnershipClaims returns the domains marked as owned from PermStorage,
// they match `domain:owns=<fqdn>` where fqdn will be returned
func getDomainOwnershipClaims(perms *claims.PermStorage) []string {
a := perms.Search("domain:owns=")
a := perms.Search("domain:owns=*")
for i := range a {
a[i] = a[i][len("domain:owns="):]
}