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

This commit is contained in:
GoEdgeLab
2024-04-08 11:21:56 +08:00
parent 94eab14d3d
commit 1efe256cbd
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 ""
}
}
}