Skip to content

Commit d96fe49

Browse files
authored
fix: Resolve cloudns reference error (#8293)
1 parent ac396b6 commit d96fe49

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Diff for: backend/utils/ssl/client.go

+17-17
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"github.com/go-acme/lego/v4/lego"
2020
"github.com/go-acme/lego/v4/providers/dns/alidns"
2121
"github.com/go-acme/lego/v4/providers/dns/clouddns"
22-
"github.com/go-acme/lego/v4/providers/dns/cloudns"
2322
"github.com/go-acme/lego/v4/providers/dns/cloudflare"
23+
"github.com/go-acme/lego/v4/providers/dns/cloudns"
2424
"github.com/go-acme/lego/v4/providers/dns/dnspod"
2525
"github.com/go-acme/lego/v4/providers/dns/godaddy"
2626
"github.com/go-acme/lego/v4/providers/dns/huaweicloud"
@@ -88,21 +88,21 @@ const (
8888
)
8989

9090
type DNSParam struct {
91-
ID string `json:"id"`
92-
Token string `json:"token"`
93-
AccessKey string `json:"accessKey"`
94-
SecretKey string `json:"secretKey"`
95-
Email string `json:"email"`
96-
APIkey string `json:"apiKey"`
97-
APIUser string `json:"apiUser"`
98-
APISecret string `json:"apiSecret"`
99-
SecretID string `json:"secretID"`
100-
Region string `json:"region"`
101-
ClientID string `json:"clientID"`
102-
Password string `json:"password"`
103-
AuthID string `json:"authID"`
104-
SubAuthID string `json:"subAuthID"`
105-
AuthPassword string `json:"authPassword"`
91+
ID string `json:"id"`
92+
Token string `json:"token"`
93+
AccessKey string `json:"accessKey"`
94+
SecretKey string `json:"secretKey"`
95+
Email string `json:"email"`
96+
APIkey string `json:"apiKey"`
97+
APIUser string `json:"apiUser"`
98+
APISecret string `json:"apiSecret"`
99+
SecretID string `json:"secretID"`
100+
Region string `json:"region"`
101+
ClientID string `json:"clientID"`
102+
Password string `json:"password"`
103+
AuthID string `json:"authID"`
104+
SubAuthID string `json:"subAuthID"`
105+
AuthPassword string `json:"authPassword"`
106106
}
107107

108108
var (
@@ -171,7 +171,7 @@ func (c *AcmeClient) UseDns(dnsType DnsType, params string, websiteSSL model.Web
171171
cloudnsConfig.PropagationTimeout = propagationTimeout
172172
cloudnsConfig.PollingInterval = pollingInterval
173173
cloudnsConfig.TTL = ttl
174-
p, err = clouddns.NewDNSProviderConfig(cloudnsConfig)
174+
p, err = cloudns.NewDNSProviderConfig(cloudnsConfig)
175175
case FreeMyIP:
176176
freeMyIpConfig := freemyip.NewDefaultConfig()
177177
freeMyIpConfig.Token = param.Token

0 commit comments

Comments
 (0)