aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/WebServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/web/WebServer.java')
-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