aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
commit1e2c06694e787201209b1d8953cf498a72c335d8 (patch)
tree53bc5d36faba98f2a2a6257f8791e0dbb6d314a8 /src/org/traccar/BasePipelineFactory.java
parentd338b1177bcc46bb1b1bad1d8a76d6008dfe2239 (diff)
downloadtrackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.gz
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.bz2
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.zip
Refactor configuration
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index f24841a22..0c0e4ef46 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -31,6 +31,7 @@ import io.netty.channel.socket.DatagramPacket;
import io.netty.handler.timeout.IdleStateHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.traccar.config.Keys;
import org.traccar.events.CommandResultEventHandler;
import org.traccar.events.DriverEventHandler;
import org.traccar.events.FuelDropEventHandler;
@@ -315,7 +316,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
pipeline.addLast(new DefaultDataHandler());
}
- if (Context.getConfig().getBoolean("forward.enable")) {
+ if (Context.getConfig().getBoolean(Keys.FORWARD_ENABLE)) {
pipeline.addLast(Main.getInjector().getInstance(WebDataHandler.class));
}