Skip to content

Commit

Permalink
fix: check DNS Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Feb 26, 2024
1 parent a23a181 commit 53eff8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ func main() {
}

var dnsProvider challenge.Provider
if config.Dns.Aliyun.AccessKey != "" {
if config.Dns.Aliyun.AccessKey != "" && !strings.HasPrefix(config.Dns.Aliyun.AccessKey, "***") {
dns, err := dns.NewAliyunDns(config.Dns.Aliyun)
if err != nil {
log.Fatal(err)
}
dnsProvider = &dns
} else {
log.Fatal("No DNS Provider")
return
}

user, err := cert.NewUser(config.Cert.Email)
Expand Down

0 comments on commit 53eff8a

Please sign in to comment.