diff options
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 3 |
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)); } |