mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	系统安全设置中增加“仅从自定义报头中获取IP”选项
This commit is contained in:
		@@ -17,6 +17,7 @@ type SecurityConfig struct {
 | 
				
			|||||||
	CheckClientRegion      bool     `json:"checkClientRegion"`      // 在登录状态下检查客户端区域
 | 
						CheckClientRegion      bool     `json:"checkClientRegion"`      // 在登录状态下检查客户端区域
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
 | 
						ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
 | 
				
			||||||
 | 
						ClientIPHeaderOnly  bool   `json:"clientIPHeaderOnly"`  // 是否仅从报头中获取IP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	allowIPRanges []*shared.IPRangeConfig
 | 
						allowIPRanges []*shared.IPRangeConfig
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user