aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/GoSafeProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol/GoSafeProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/GoSafeProtocol.java8
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));
+ }
+ });
}
}