This commit is contained in:
斟酌 鵬兄 2022-03-14 11:23:35 +09:00
parent 5eb483e8be
commit 929e92e187
2 changed files with 3 additions and 2 deletions

View File

@ -128,6 +128,8 @@ func (dnsObj *FreeDNS) Logout() error {
if err != nil { if err != nil {
return err return err
} }
dnsObj.AuthCookie = nil
return nil return nil
} }

View File

@ -140,12 +140,11 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
// concurrently. // concurrently.
func (c *customDNSProviderSolver) CleanUp(ch *v1alpha1.ChallengeRequest) error { func (c *customDNSProviderSolver) CleanUp(ch *v1alpha1.ChallengeRequest) error {
if c.freedns == nil { if c.freedns.AuthCookie == nil {
return nil return nil
} }
dnsObj := c.freedns dnsObj := c.freedns
c.freedns = nil
_addr := strings.TrimRight(ch.ResolvedFQDN, ".") _addr := strings.TrimRight(ch.ResolvedFQDN, ".")
_key := "\"" + ch.Key + "\"" _key := "\"" + ch.Key + "\""