wrong trim
This commit is contained in:
parent
068c0c2c9e
commit
67a819a28a
2
main.go
2
main.go
@ -116,7 +116,7 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_zone := strings.TrimSuffix(ch.ResolvedFQDN, "."+ch.ResolvedZone)
|
_zone := strings.TrimSuffix(ch.ResolvedFQDN, "."+domainName)
|
||||||
_key := "\"" + ch.Key + "\""
|
_key := "\"" + ch.Key + "\""
|
||||||
|
|
||||||
err = dnsObj.AddRecord("TXT", _zone, _key, false, "")
|
err = dnsObj.AddRecord("TXT", _zone, _key, false, "")
|
||||||
|
Loading…
Reference in New Issue
Block a user