修复申请部署

This commit is contained in:
zhangchenhao
2025-05-12 19:49:59 +08:00
parent 7deeed1403
commit 79c04f7b00
2 changed files with 20 additions and 19 deletions

View File

@@ -233,14 +233,15 @@ func Apply(cfg map[string]any, logger *public.Logger) (map[string]any, error) {
}
err = client.Challenge.SetDNS01Provider(provider,
dns01.WrapPreCheck(func(domain, fqdn, value string, check dns01.PreCheckFunc) (bool, error) {
// 跳过预检查
return true, nil
}),
// dns01.WrapPreCheck(func(domain, fqdn, value string, check dns01.PreCheckFunc) (bool, error) {
// // 跳过预检查
// return true, nil
// }),
dns01.AddRecursiveNameservers([]string{
"8.8.8.8:53",
"1.1.1.1:53",
}))
}),
)
if err != nil {
return nil, err
}