mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	修改反向代理回源主机名默认值
This commit is contained in:
		@@ -191,6 +191,7 @@ func (this *ReverseProxyDAO) CreateReverseProxy(tx *dbs.Tx, adminId int64, userI
 | 
			
		||||
	op.State = ReverseProxyStateEnabled
 | 
			
		||||
	op.AdminId = adminId
 | 
			
		||||
	op.UserId = userId
 | 
			
		||||
	op.RequestHostType = serverconfigs.RequestHostTypeProxyServer
 | 
			
		||||
 | 
			
		||||
	defaultHeaders := []string{"X-Real-IP", "X-Forwarded-For", "X-Forwarded-By", "X-Forwarded-Host", "X-Forwarded-Proto"}
 | 
			
		||||
	defaultHeadersJSON, err := json.Marshal(defaultHeaders)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user