From d96fe499937a050e89ffe3979bc7c0dfbb292b2d Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 2 Apr 2025 11:41:53 +0800 Subject: [PATCH] fix: Resolve cloudns reference error (#8293) --- backend/utils/ssl/client.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/backend/utils/ssl/client.go b/backend/utils/ssl/client.go index a62b9e8d3..751d8e501 100644 --- a/backend/utils/ssl/client.go +++ b/backend/utils/ssl/client.go @@ -19,8 +19,8 @@ import ( "github.com/go-acme/lego/v4/lego" "github.com/go-acme/lego/v4/providers/dns/alidns" "github.com/go-acme/lego/v4/providers/dns/clouddns" - "github.com/go-acme/lego/v4/providers/dns/cloudns" "github.com/go-acme/lego/v4/providers/dns/cloudflare" + "github.com/go-acme/lego/v4/providers/dns/cloudns" "github.com/go-acme/lego/v4/providers/dns/dnspod" "github.com/go-acme/lego/v4/providers/dns/godaddy" "github.com/go-acme/lego/v4/providers/dns/huaweicloud" @@ -88,21 +88,21 @@ const ( ) type DNSParam struct { - ID string `json:"id"` - Token string `json:"token"` - AccessKey string `json:"accessKey"` - SecretKey string `json:"secretKey"` - Email string `json:"email"` - APIkey string `json:"apiKey"` - APIUser string `json:"apiUser"` - APISecret string `json:"apiSecret"` - SecretID string `json:"secretID"` - Region string `json:"region"` - ClientID string `json:"clientID"` - Password string `json:"password"` - AuthID string `json:"authID"` - SubAuthID string `json:"subAuthID"` - AuthPassword string `json:"authPassword"` + ID string `json:"id"` + Token string `json:"token"` + AccessKey string `json:"accessKey"` + SecretKey string `json:"secretKey"` + Email string `json:"email"` + APIkey string `json:"apiKey"` + APIUser string `json:"apiUser"` + APISecret string `json:"apiSecret"` + SecretID string `json:"secretID"` + Region string `json:"region"` + ClientID string `json:"clientID"` + Password string `json:"password"` + AuthID string `json:"authID"` + SubAuthID string `json:"subAuthID"` + AuthPassword string `json:"authPassword"` } var ( @@ -171,7 +171,7 @@ func (c *AcmeClient) UseDns(dnsType DnsType, params string, websiteSSL model.Web cloudnsConfig.PropagationTimeout = propagationTimeout cloudnsConfig.PollingInterval = pollingInterval cloudnsConfig.TTL = ttl - p, err = clouddns.NewDNSProviderConfig(cloudnsConfig) + p, err = cloudns.NewDNSProviderConfig(cloudnsConfig) case FreeMyIP: freeMyIpConfig := freemyip.NewDefaultConfig() freeMyIpConfig.Token = param.Token