DNS集群增加时区选项

This commit is contained in:
GoEdgeLab
2022-09-19 17:00:39 +08:00
parent 5f40529683
commit 48d12221fe
2 changed files with 3 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ type NSCluster struct {
DdosProtection dbs.JSON `field:"ddosProtection"` // DDoS防护设置 DdosProtection dbs.JSON `field:"ddosProtection"` // DDoS防护设置
Hosts dbs.JSON `field:"hosts"` // DNS主机地址 Hosts dbs.JSON `field:"hosts"` // DNS主机地址
AutoRemoteStart bool `field:"autoRemoteStart"` // 自动远程启动 AutoRemoteStart bool `field:"autoRemoteStart"` // 自动远程启动
TimeZone string `field:"timeZone"` // 时区
} }
type NSClusterOperator struct { type NSClusterOperator struct {
@@ -35,6 +36,7 @@ type NSClusterOperator struct {
DdosProtection any // DDoS防护设置 DdosProtection any // DDoS防护设置
Hosts any // DNS主机地址 Hosts any // DNS主机地址
AutoRemoteStart any // 自动远程启动 AutoRemoteStart any // 自动远程启动
TimeZone any // 时区
} }
func NewNSClusterOperator() *NSClusterOperator { func NewNSClusterOperator() *NSClusterOperator {

View File

@@ -403,6 +403,7 @@ func (this *NSNodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64) (*dnsconfigs.
NodeId: node.UniqueId, NodeId: node.UniqueId,
Secret: node.Secret, Secret: node.Secret,
ClusterId: int64(node.ClusterId), ClusterId: int64(node.ClusterId),
TimeZone: cluster.TimeZone,
} }
// 访问日志 // 访问日志