优化代码

This commit is contained in:
GoEdgeLab
2022-08-06 20:28:32 +08:00
parent bfef7c4d6e
commit e2c7c1572f
22 changed files with 78 additions and 1455 deletions

View File

@@ -1,3 +1,5 @@
//go:build plus
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package dnsclients
@@ -39,7 +41,7 @@ func (this *LocalEdgeDNSProvider) Auth(params maps.Map) error {
// GetDomains 获取所有域名列表
func (this *LocalEdgeDNSProvider) GetDomains() (domains []string, err error) {
var tx *dbs.Tx
domainOnes, err := nameservers.SharedNSDomainDAO.ListEnabledDomains(tx, this.clusterId, 0, "", 0, 1000)
domainOnes, err := nameservers.SharedNSDomainDAO.ListEnabledDomains(tx, this.clusterId, 0, 0, "", 0, 10000)
if err != nil {
return nil, err
}