修复一个保存服务错误的Bug

This commit is contained in:
刘祥超
2021-01-26 20:32:25 +08:00
parent 7a3783a09f
commit 5d4e5c8c50

View File

@@ -159,7 +159,7 @@ func (this *ReverseProxyDAO) CreateReverseProxy(tx *dbs.Tx, adminId int64, userI
op.State = ReverseProxyStateEnabled
op.AdminId = adminId
op.UserId = userId
op.AddHeaders = []string{"X-Real-IP"}
op.AddHeaders = "[\"X-Real-IP\"]"
if len(schedulingJSON) > 0 {
op.Scheduling = string(schedulingJSON)