fix: custom_nameservers should be dns_servers (#581)
This commit is contained in:
parent
06738d5d16
commit
a24f452b65
@ -78,7 +78,7 @@ func updateConfig(c *gin.Context) (any, error) {
|
|||||||
singleton.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
|
singleton.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
|
||||||
singleton.Conf.IPChangeNotificationGroupID = sf.IPChangeNotificationGroupID
|
singleton.Conf.IPChangeNotificationGroupID = sf.IPChangeNotificationGroupID
|
||||||
singleton.Conf.SiteName = sf.SiteName
|
singleton.Conf.SiteName = sf.SiteName
|
||||||
singleton.Conf.DNSServers = sf.CustomNameservers
|
singleton.Conf.DNSServers = sf.DNSServers
|
||||||
singleton.Conf.CustomCode = sf.CustomCode
|
singleton.Conf.CustomCode = sf.CustomCode
|
||||||
singleton.Conf.CustomCodeDashboard = sf.CustomCodeDashboard
|
singleton.Conf.CustomCodeDashboard = sf.CustomCodeDashboard
|
||||||
singleton.Conf.RealIPHeader = sf.RealIPHeader
|
singleton.Conf.RealIPHeader = sf.RealIPHeader
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
type SettingForm struct {
|
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"`
|
IgnoredIPNotification string `json:"ignored_ip_notification,omitempty" validate:"optional"`
|
||||||
IPChangeNotificationGroupID uint64 `json:"ip_change_notification_group_id,omitempty"` // IP变更提醒的通知组
|
IPChangeNotificationGroupID uint64 `json:"ip_change_notification_group_id,omitempty"` // IP变更提醒的通知组
|
||||||
Cover uint8 `json:"cover,omitempty"`
|
Cover uint8 `json:"cover,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user