aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2024-06-13 09:43:51 -0700
committerGitHub <noreply@github.com>2024-06-13 09:43:51 -0700
commit0c6880698769d87a866ebbb60c84dbe13ee42ce7 (patch)
tree8717e9695d08d856d1c5516433b11eef8cf994af /src
parentcba42ac760e613b4663311ab3dbe6601f0a16d24 (diff)
parent42eb4009587bb654d60abe2eed499259f20bbb2f (diff)
downloadtrackermap-server-0c6880698769d87a866ebbb60c84dbe13ee42ce7.tar.gz
trackermap-server-0c6880698769d87a866ebbb60c84dbe13ee42ce7.tar.bz2
trackermap-server-0c6880698769d87a866ebbb60c84dbe13ee42ce7.zip
Merge pull request #5344 from frederictobiasc/tlt2h-udp
tlt2h protocol: Enable UDP
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/Tlt2hProtocol.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocol.java b/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
index 6763e9b6b..4f306bcf5 100644
--- a/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
+++ b/src/main/java/org/traccar/protocol/Tlt2hProtocol.java
@@ -38,6 +38,14 @@ public class Tlt2hProtocol extends BaseProtocol {
pipeline.addLast(new Tlt2hProtocolDecoder(Tlt2hProtocol.this));
}
});
+ addServer(new TrackerServer(config, getName(), true) {
+ @Override
+ protected void addProtocolHandlers(PipelineBuilder pipeline, Config config) {
+ pipeline.addLast(new StringDecoder());
+ pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new Tlt2hProtocolDecoder(Tlt2hProtocol.this));
+ }
+ });
}
}