aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-30 22:09:37 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-30 22:09:37 -0700
commitb2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6 (patch)
tree4d9241d701440064b2d0a50236a55379652d8095 /src/main/java/org/traccar/protocol/WliProtocolDecoder.java
parenteb4e0be40343a6b0cd91b083ba185729f8aed334 (diff)
downloadtrackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.tar.gz
trackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.tar.bz2
trackermap-server-b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6.zip
Fix WLI protocol issues
Diffstat (limited to 'src/main/java/org/traccar/protocol/WliProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/WliProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/WliProtocolDecoder.java b/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
index fb3d076c1..0e2a0a65e 100644
--- a/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WliProtocolDecoder.java
@@ -123,7 +123,7 @@ public class WliProtocolDecoder extends BaseProtocolDecoder {
} else if (type == '2') {
String id = buf.toString(buf.readerIndex(), buf.readableBytes() - 1, StandardCharsets.US_ASCII);
- getDeviceSession(channel, remoteAddress, id);
+ getDeviceSession(channel, remoteAddress, id.substring("wli:".length()));
return null;
}