aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorSergey Kostin <7er@inbox.ru>2019-08-01 12:40:00 +0300
committerSergey Kostin <7er@inbox.ru>2019-08-01 12:40:00 +0300
commit5757c40f845b6470ba0e1288ce9ee1db58cf32bd (patch)
tree1b99879c03415f99dba6b8d0471b612fe126d5a6 /src/main/java/org/traccar/BaseProtocolDecoder.java
parent678c6bb04f4f97e2d7f607ffb0d5d21953282bde (diff)
downloadtrackermap-server-5757c40f845b6470ba0e1288ce9ee1db58cf32bd.tar.gz
trackermap-server-5757c40f845b6470ba0e1288ce9ee1db58cf32bd.tar.bz2
trackermap-server-5757c40f845b6470ba0e1288ce9ee1db58cf32bd.zip
egts with oid authentication (auto-detect)
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocolDecoder.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolDecoder.java b/src/main/java/org/traccar/BaseProtocolDecoder.java
index 87d09289f..02c2cc3ed 100644
--- a/src/main/java/org/traccar/BaseProtocolDecoder.java
+++ b/src/main/java/org/traccar/BaseProtocolDecoder.java
@@ -143,7 +143,13 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
}
public DeviceSession getDeviceSession(Channel channel, SocketAddress remoteAddress, String... uniqueIds) {
+ return getDeviceSession(channel, remoteAddress, false, uniqueIds);
+ }
+
+ public DeviceSession getDeviceSession(Channel channel, SocketAddress remoteAddress, boolean ignoreCache,
+ String... uniqueIds) {
if (channel != null && BasePipelineFactory.getHandler(channel.pipeline(), HttpRequestDecoder.class) != null
+ || ignoreCache
|| config.getBoolean("decoder.ignoreSessionCache")) {
long deviceId = findDeviceId(remoteAddress, uniqueIds);
if (deviceId != 0) {