aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/handler
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-30 19:41:51 -0700
committerAnton Tananaev <anton@traccar.org>2024-03-30 19:41:51 -0700
commit2d366f0ab3d88c635bec0f1f498396cd47557f1d (patch)
tree63736bf5f7bc659d80c5f1eaf286ba0d71498e5d /src/main/java/org/traccar/handler
parente7205fa3d1aa6d223cfabfabb32f027415956430 (diff)
downloadtrackermap-server-2d366f0ab3d88c635bec0f1f498396cd47557f1d.tar.gz
trackermap-server-2d366f0ab3d88c635bec0f1f498396cd47557f1d.tar.bz2
trackermap-server-2d366f0ab3d88c635bec0f1f498396cd47557f1d.zip
Fix remote address handler
Diffstat (limited to 'src/main/java/org/traccar/handler')
-rw-r--r--src/main/java/org/traccar/handler/network/RemoteAddressHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/handler/network/RemoteAddressHandler.java b/src/main/java/org/traccar/handler/network/RemoteAddressHandler.java
index d545ed799..c52bb2be1 100644
--- a/src/main/java/org/traccar/handler/network/RemoteAddressHandler.java
+++ b/src/main/java/org/traccar/handler/network/RemoteAddressHandler.java
@@ -19,12 +19,14 @@ import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import jakarta.inject.Inject;
+import jakarta.inject.Singleton;
import org.traccar.config.Config;
import org.traccar.config.Keys;
import org.traccar.model.Position;
import java.net.InetSocketAddress;
+@Singleton
@ChannelHandler.Sharable
public class RemoteAddressHandler extends ChannelInboundHandlerAdapter {