mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 18:10:25 +08:00
优化代码
This commit is contained in:
@@ -436,7 +436,7 @@ func (this *NSNodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64) (*dnsconfigs.
|
|||||||
|
|
||||||
// 递归DNS配置
|
// 递归DNS配置
|
||||||
if IsNotNull(cluster.Recursion) {
|
if IsNotNull(cluster.Recursion) {
|
||||||
var recursionConfig = &dnsconfigs.RecursionConfig{}
|
var recursionConfig = &dnsconfigs.NSRecursionConfig{}
|
||||||
err = json.Unmarshal(cluster.Recursion, recursionConfig)
|
err = json.Unmarshal(cluster.Recursion, recursionConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user