update setting api (#17)

This commit is contained in:
UUBulb
2024-11-23 16:36:16 +08:00
committed by GitHub
parent 885330e948
commit a590d3a56e
2 changed files with 4 additions and 2 deletions

View File

@@ -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)