From 8b7257b4e952bdcfd4411c572a73adaf350d0d58 Mon Sep 17 00:00:00 2001 From: developerKurt Date: Thu, 2 Jan 2020 07:15:18 +0300 Subject: Corrected the documentation of IpRetriever.java --- src/main/java/org/traccar/helper/IpRetriever.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/traccar/helper/IpRetriever.java b/src/main/java/org/traccar/helper/IpRetriever.java index 37a1e8662..4bab93edb 100644 --- a/src/main/java/org/traccar/helper/IpRetriever.java +++ b/src/main/java/org/traccar/helper/IpRetriever.java @@ -3,7 +3,7 @@ package org.traccar.helper; import javax.servlet.http.HttpServletRequest; /** - * Gets the client's IP address regardless of whether the server is behind a proxy server or a load balancer. + * Gets the client's IP address regardless of whether the server is behind a proxy/reverse proxy server or a load balancer. * */ public final class IpRetriever @@ -12,8 +12,7 @@ public final class IpRetriever /** * Retrieves the client's IP address. - * Handles the cases like whether the server is behind a proxy server or a load balancer - * also if the request is being made by using a reverse proxy. + * Handles the cases like whether the server is behind a proxy/reverse proxy server or a load balancer * * @param request {@link HttpServletRequest} instance * @return client's IP address @@ -36,7 +35,7 @@ public final class IpRetriever } /** - * If the request uses a reverse proxy, the header value will also contain load balancer and reverse proxy server IPs + * If the server is behind a reverse proxy, the header value will also contain the IP's from load balancer and reverse proxy * This method gets rid of them. * * @param ipAddress IP address value from the header -- cgit v1.2.3