aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-28 22:30:27 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-28 22:30:27 -0800
commit980d87ad01e5d962406e1f2d75c8584c5a00cf81 (patch)
tree6a842a2be72128f3e7d5b4212ee3bed13584bed3 /src/main/java/org/traccar/api
parentf4c6ce093487a55220da7f29e3bb0644995cfc62 (diff)
downloadtrackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.tar.gz
trackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.tar.bz2
trackermap-server-980d87ad01e5d962406e1f2d75c8584c5a00cf81.zip
Use defined keys
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r--src/main/java/org/traccar/api/HealthCheckService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/HealthCheckService.java b/src/main/java/org/traccar/api/HealthCheckService.java
index c9ce5a6c9..0182cc358 100644
--- a/src/main/java/org/traccar/api/HealthCheckService.java
+++ b/src/main/java/org/traccar/api/HealthCheckService.java
@@ -61,8 +61,8 @@ public class HealthCheckService {
}
private String getUrl() {
- String address = Context.getConfig().getString("web.address", "localhost");
- int port = Context.getConfig().getInteger("web.port", 8082);
+ String address = Context.getConfig().getString(Keys.WEB_ADDRESS, "localhost");
+ int port = Context.getConfig().getInteger(Keys.WEB_PORT);
return "http://" + address + ":" + port + "/api/server";
}