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

This commit is contained in:
刘祥超
2024-04-08 11:21:56 +08:00
parent 3fa1cf5a2c
commit b0d63c0d5b
3 changed files with 14 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ func RemoteIP(action *actions.ActionObject) string {
return ipValue
}
}
if securityConfig.ClientIPHeaderOnly {
return ""
}
}
}