mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-03-05 01:55:36 +08:00
系统安全设置中增加“仅从自定义报头中获取IP”选项
This commit is contained in:
@@ -37,6 +37,10 @@ func RemoteIP(action *actions.ActionObject) string {
|
||||
return ipValue
|
||||
}
|
||||
}
|
||||
|
||||
if securityConfig.ClientIPHeaderOnly {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user