feat(autocert): add DNS resolver options to Config and update provider initialization

This commit is contained in:
yusing
2025-09-16 15:43:49 +08:00
parent b12999210f
commit 7205bf47de
2 changed files with 10 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ func (p *Provider) initClient() error {
return err
}
err = legoClient.Challenge.SetDNS01Provider(p.cfg.challengeProvider)
err = legoClient.Challenge.SetDNS01Provider(p.cfg.challengeProvider, p.cfg.dns01Options()...)
if err != nil {
return err
}