diff options
author | developerKurt <mustafakurt.business@gmail.com> | 2020-01-02 07:15:18 +0300 |
---|---|---|
committer | developerKurt <mustafakurt.business@gmail.com> | 2020-01-02 07:15:18 +0300 |
commit | 8b7257b4e952bdcfd4411c572a73adaf350d0d58 (patch) | |
tree | 4ef0dde229ff9e0b9cc170e98a4a47292963a3f9 /src/main | |
parent | fcad646a7c912463c53de946b2586e4a49a6e1ff (diff) | |
download | traccar-server-8b7257b4e952bdcfd4411c572a73adaf350d0d58.tar.gz traccar-server-8b7257b4e952bdcfd4411c572a73adaf350d0d58.tar.bz2 traccar-server-8b7257b4e952bdcfd4411c572a73adaf350d0d58.zip |
Corrected the documentation of IpRetriever.java
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/helper/IpRetriever.java | 7 |
1 files 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 |