diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-30 20:33:07 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-30 20:33:07 -0800 |
commit | 711567166a386c8e71e62eb61716cacb97e09491 (patch) | |
tree | 55121f63ac838c9378af932ab4ac86c7ac78c38e | |
parent | 2810e724193fac01e06e8412dae7bde3955fb46b (diff) | |
download | trackermap-server-711567166a386c8e71e62eb61716cacb97e09491.tar.gz trackermap-server-711567166a386c8e71e62eb61716cacb97e09491.tar.bz2 trackermap-server-711567166a386c8e71e62eb61716cacb97e09491.zip |
Enable UDP for GoSafe
-rw-r--r-- | src/main/java/org/traccar/protocol/GoSafeProtocol.java | 8 |
1 files changed, 8 insertions, 0 deletions
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)); + } + }); } } |