mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 15:20:25 +08:00
用户使用反向代理访问系统时主动引导用户设置“自定义客户端IP报头“
This commit is contained in:
@@ -29,6 +29,11 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
// DisableXFFPrompt 停用XFF提示
|
||||
func DisableXFFPrompt() {
|
||||
securityXFFPromptDisabled = true
|
||||
}
|
||||
|
||||
// 检查用户IP并支持缓存
|
||||
func checkIP(config *systemconfigs.SecurityConfig, ipAddr string) bool {
|
||||
ipCacheLocker.Lock()
|
||||
|
||||
Reference in New Issue
Block a user