aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/TrackerServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-28 21:45:05 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-28 21:45:05 -0800
commit4f3d413a3003d7b9295c2e6801e7f3033738f65e (patch)
tree6b512462ec636b49e4001ab5017e8d1eb3f1535f /src/main/java/org/traccar/TrackerServer.java
parent51704590a835057bf4850a5eaf8c5037d20f648a (diff)
downloadtrackermap-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.tar.gz
trackermap-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.tar.bz2
trackermap-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.zip
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/TrackerServer.java')
-rw-r--r--src/main/java/org/traccar/TrackerServer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/TrackerServer.java b/src/main/java/org/traccar/TrackerServer.java
index 3a1e1c4e8..59ba123e2 100644
--- a/src/main/java/org/traccar/TrackerServer.java
+++ b/src/main/java/org/traccar/TrackerServer.java
@@ -24,6 +24,7 @@ import io.netty.channel.group.DefaultChannelGroup;
import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.concurrent.GlobalEventExecutor;
+import org.traccar.config.Keys;
import java.net.InetSocketAddress;
@@ -39,8 +40,8 @@ public abstract class TrackerServer {
public TrackerServer(boolean datagram, String protocol) {
this.datagram = datagram;
- address = Context.getConfig().getString(protocol + ".address");
- port = Context.getConfig().getInteger(protocol + ".port");
+ address = Context.getConfig().getString(Keys.PROTOCOL_ADDRESS.withPrefix(protocol));
+ port = Context.getConfig().getInteger(Keys.PROTOCOL_PORT.withPrefix(protocol));
BasePipelineFactory pipelineFactory = new BasePipelineFactory(this, protocol) {
@Override