aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web
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/web
parent51704590a835057bf4850a5eaf8c5037d20f648a (diff)
downloadtraccar-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.tar.gz
traccar-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.tar.bz2
traccar-server-4f3d413a3003d7b9295c2e6801e7f3033738f65e.zip
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/web')
-rw-r--r--src/main/java/org/traccar/web/WebServer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java
index 28fa45273..1e9d716b4 100644
--- a/src/main/java/org/traccar/web/WebServer.java
+++ b/src/main/java/org/traccar/web/WebServer.java
@@ -64,8 +64,8 @@ public class WebServer {
private void initServer(Config config) {
- String address = config.getString("web.address");
- int port = config.getInteger("web.port", 8082);
+ String address = config.getString(Keys.WEB_ADDRESS);
+ int port = config.getInteger(Keys.WEB_PORT);
if (address == null) {
server = new Server(port);
} else {
@@ -113,7 +113,7 @@ public class WebServer {
}
private void initClientProxy(Config config, HandlerList handlers) {
- int port = config.getInteger("osmand.port");
+ int port = config.getInteger(Keys.PROTOCOL_PORT.withPrefix("osmand"));
if (port != 0) {
ServletContextHandler servletHandler = new ServletContextHandler() {
@Override