修改默认ns

pull/79/head^2
zhangchenhao 2025-05-12 20:11:34 +08:00
parent 0252451ed1
commit 54a1fcc6bd
1 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ import (
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/providers/dns/alidns"
"github.com/go-acme/lego/v4/providers/dns/baiducloud"
@ -236,10 +237,10 @@ func Apply(cfg map[string]any, logger *public.Logger) (map[string]any, error) {
// // 跳过预检查
// return true, nil
// }),
// dns01.AddRecursiveNameservers([]string{
// "8.8.8.8:53",
// "1.1.1.1:53",
// }),
dns01.AddRecursiveNameservers([]string{
"google-public-dns-a.google.com:53",
"google-public-dns-b.google.com:53",
}),
)
if err != nil {
return nil, err