系统安全设置中增加“仅从自定义报头中获取IP”选项

This commit is contained in:
GoEdgeLab
2024-04-08 11:22:04 +08:00
parent c1e1f2d31f
commit 02da679efe

View File

@@ -17,6 +17,7 @@ type SecurityConfig struct {
CheckClientRegion bool `json:"checkClientRegion"` // 在登录状态下检查客户端区域
ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
ClientIPHeaderOnly bool `json:"clientIPHeaderOnly"` // 是否仅从报头中获取IP
allowIPRanges []*shared.IPRangeConfig
}