aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/traccar/helper/IpRetriever.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/helper/IpRetriever.java b/src/main/java/org/traccar/helper/IpRetriever.java
index 814a78a4b..ff211d181 100644
--- a/src/main/java/org/traccar/helper/IpRetriever.java
+++ b/src/main/java/org/traccar/helper/IpRetriever.java
@@ -27,12 +27,15 @@ public final class IpRetriever {
return ipAddress;
}
- } else return null;
+ } else {
+ return null;
+ }
}
/**
- * If the server is behind a reverse proxy, the header value will also contain the IP's from load balancer and reverse proxy
+ * 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