mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
Merge branch 'main' into bug6105
This commit is contained in:
@@ -30,7 +30,7 @@ public abstract class HttpRequestUtils {
|
||||
final String result;
|
||||
if (Util.hasLength(xForwardedFor)) {
|
||||
final String[] ips = xForwardedFor.split(", *");
|
||||
result = ips[ips.length-1];
|
||||
result = ips[0];
|
||||
} else {
|
||||
result = req.getRemoteAddr();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user