Skip to content

Commit

Permalink
Use OverrideDomain when cleaning up DNS solver (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjung56 committed Jul 27, 2022
1 parent 9b9f842 commit 23ca487
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion solvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ func (s *DNS01Solver) Wait(ctx context.Context, challenge acme.Challenge) error
// CleanUp deletes the DNS TXT record created in Present().
func (s *DNS01Solver) CleanUp(ctx context.Context, challenge acme.Challenge) error {
dnsName := challenge.DNS01TXTRecordName()

if s.OverrideDomain != "" {
dnsName = s.OverrideDomain
}

defer func() {
// always forget about it so we don't leak memory
s.txtRecordsMu.Lock()
Expand Down

0 comments on commit 23ca487

Please sign in to comment.