diff --git a/cmd/dashboard/controller/setting.go b/cmd/dashboard/controller/setting.go index e7dd606..b890073 100644 --- a/cmd/dashboard/controller/setting.go +++ b/cmd/dashboard/controller/setting.go @@ -78,7 +78,7 @@ func updateConfig(c *gin.Context) (any, error) { singleton.Conf.IgnoredIPNotification = sf.IgnoredIPNotification singleton.Conf.IPChangeNotificationGroupID = sf.IPChangeNotificationGroupID singleton.Conf.SiteName = sf.SiteName - singleton.Conf.DNSServers = sf.CustomNameservers + singleton.Conf.DNSServers = sf.DNSServers singleton.Conf.CustomCode = sf.CustomCode singleton.Conf.CustomCodeDashboard = sf.CustomCodeDashboard singleton.Conf.RealIPHeader = sf.RealIPHeader diff --git a/model/setting_api.go b/model/setting_api.go index b75becb..d81efc5 100644 --- a/model/setting_api.go +++ b/model/setting_api.go @@ -1,7 +1,7 @@ package model type SettingForm struct { - CustomNameservers string `json:"custom_nameservers,omitempty" validate:"optional"` + DNSServers string `json:"dns_servers,omitempty" validate:"optional"` IgnoredIPNotification string `json:"ignored_ip_notification,omitempty" validate:"optional"` IPChangeNotificationGroupID uint64 `json:"ip_change_notification_group_id,omitempty"` // IP变更提醒的通知组 Cover uint8 `json:"cover,omitempty"`