优化代码

This commit is contained in:
GoEdgeLab
2022-09-21 15:09:39 +08:00
parent 38f3db7478
commit 49a29fd928
6 changed files with 13 additions and 13 deletions

View File

@@ -468,7 +468,7 @@ func (this *DNSTaskExecutor) doCluster(taskId int64, clusterId int64) error {
// 自动设置的CNAME
var cnameRecords = []string{}
if dnsConfig != nil {
cnameRecords = dnsConfig.CNameRecords
cnameRecords = dnsConfig.CNAMERecords
}
for _, cnameRecord := range cnameRecords {
serverDNSNames = append(serverDNSNames, cnameRecord)