mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
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.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
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user