wrong trim

This commit is contained in:
斟酌 鵬兄 2022-03-14 07:27:49 +09:00
parent 068c0c2c9e
commit 67a819a28a

View File

@ -116,7 +116,7 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
return err
}
_zone := strings.TrimSuffix(ch.ResolvedFQDN, "."+ch.ResolvedZone)
_zone := strings.TrimSuffix(ch.ResolvedFQDN, "."+domainName)
_key := "\"" + ch.Key + "\""
err = dnsObj.AddRecord("TXT", _zone, _key, false, "")