Skip to content

Commit

Permalink
Refactored ipv4 method to be more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Nov 29, 2024
1 parent f5c537c commit 6448775
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -177,8 +177,7 @@ protected String getIpAddress(HttpServletRequest request) {
for (String candidateIp : ips) {
// Validate if it's an IPv4 address
if (isIPv4Address(candidateIp)) {
ip = candidateIp;
break;
return candidateIp;
}
}
}

0 comments on commit 6448775

Please sign in to comment.