自建DNS增加全局配置

This commit is contained in:
GoEdgeLab
2021-08-05 16:08:18 +08:00
parent 48b8d94404
commit efcec26013
13 changed files with 195 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ func (this *CreateAction) Init() {
func (this *CreateAction) RunGet(params struct{}) {
// 默认的访问日志设置
this.Data["accessLogRef"] = &dnsconfigs.AccessLogRef{
this.Data["accessLogRef"] = &dnsconfigs.NSAccessLogRef{
IsOn: true,
}
@@ -44,7 +44,7 @@ func (this *CreateAction) RunPost(params struct {
Require("请输入集群名称")
// 校验访问日志设置
ref := &dnsconfigs.AccessLogRef{}
ref := &dnsconfigs.NSAccessLogRef{}
err := json.Unmarshal(params.AccessLogJSON, ref)
if err != nil {
this.Fail("数据格式错误:" + err.Error())