From 4f3d413a3003d7b9295c2e6801e7f3033738f65e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 28 Dec 2020 21:45:05 -0800 Subject: Migrate more keys --- src/main/java/org/traccar/web/WebServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/traccar/web') 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 -- cgit v1.2.3