mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
update setting api (#17)
This commit is contained in:
1 parent
885330e948
commit
a590d3a56e
2 files changed
+4
-2
No files matched your search
@@ -61,6 +61,7 @@ func updateConfig(c *gin.Context) (any, error) {
|
||||
singleton.Conf.DNSServers = sf.CustomNameservers
|
||||
singleton.Conf.CustomCode = sf.CustomCode
|
||||
singleton.Conf.CustomCodeDashboard = sf.CustomCodeDashboard
|
||||
singleton.Conf.RealIPHeader = sf.RealIPHeader
|
||||
|
||||
if err := singleton.Conf.Save(); err != nil {
|
||||
return nil, newGormError("%v", err)
|
||||
|
||||
Reference in new issue
Block a user