diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-28 22:30:27 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-28 22:30:27 -0800 |
commit | 980d87ad01e5d962406e1f2d75c8584c5a00cf81 (patch) | |
tree | 6a842a2be72128f3e7d5b4212ee3bed13584bed3 /src/main/java/org/traccar/Context.java | |
parent | f4c6ce093487a55220da7f29e3bb0644995cfc62 (diff) | |
download | trackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.tar.gz trackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.tar.bz2 trackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.zip |
Use defined keys
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r-- | src/main/java/org/traccar/Context.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java index d23314c06..3614497af 100644 --- a/src/main/java/org/traccar/Context.java +++ b/src/main/java/org/traccar/Context.java @@ -363,12 +363,12 @@ public final class Context { String address; try { - address = config.getString("web.address", InetAddress.getLocalHost().getHostAddress()); + address = config.getString(Keys.WEB_ADDRESS, InetAddress.getLocalHost().getHostAddress()); } catch (UnknownHostException e) { address = "localhost"; } - String webUrl = URIUtil.newURI("http", address, config.getInteger("web.port", 8082), "", ""); + String webUrl = URIUtil.newURI("http", address, config.getInteger(Keys.WEB_PORT), "", ""); webUrl = Context.getConfig().getString("web.url", webUrl); velocityProperties.setProperty("web.url", webUrl); |