Skip to content

Commit

Permalink
Fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
at055612 committed Apr 29, 2022
1 parent 956f1a3 commit 189c666
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private Optional<String> getIpFromXForwardedFor(final HttpServletRequest request
final String forwardedFor = request.getHeader(X_FORWARDED_FOR);
if (forwardedFor != null && !forwardedFor.isBlank()) {
final String ip;
// X_FORWARD_FOR may contain multiple IPs if it has bee through multiple proxies
// X_FORWARD_FOR may contain multiple IPs if it has been through multiple proxies
// for example '1.2.3.4, 9.8.7.6'. We will take the left most (i.e. most distant) one.
if (forwardedFor.contains(",")) {
ip = forwardedFor.substring(0, forwardedFor.indexOf(","));
Expand Down

0 comments on commit 189c666

Please sign in to comment.