mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-07 01:00:20 +00:00
fix: custom_nameservers should be dns_servers (#581)
This commit is contained in:
1 parent
06738d5d16
commit
a24f452b65
2 files changed
+2
-2
No files matched your search
@@ -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"`
|
||||||
|
|||||||
Reference in new issue
Block a user