From 711567166a386c8e71e62eb61716cacb97e09491 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 30 Nov 2020 20:33:07 -0800 Subject: Enable UDP for GoSafe --- src/main/java/org/traccar/protocol/GoSafeProtocol.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/traccar/protocol/GoSafeProtocol.java b/src/main/java/org/traccar/protocol/GoSafeProtocol.java index 853b78a16..aaaffac97 100644 --- a/src/main/java/org/traccar/protocol/GoSafeProtocol.java +++ b/src/main/java/org/traccar/protocol/GoSafeProtocol.java @@ -34,6 +34,14 @@ public class GoSafeProtocol extends BaseProtocol { pipeline.addLast(new GoSafeProtocolDecoder(GoSafeProtocol.this)); } }); + addServer(new TrackerServer(true, getName()) { + @Override + protected void addProtocolHandlers(PipelineBuilder pipeline) { + pipeline.addLast(new StringEncoder()); + pipeline.addLast(new StringDecoder()); + pipeline.addLast(new GoSafeProtocolDecoder(GoSafeProtocol.this)); + } + }); } } -- cgit v1.2.3