aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:20:03 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:20:03 -0800
commit8fe1e679935688676f7139bb9ed6dc61838d0e2f (patch)
tree75704a42322d85d7245658b8d06aea9def6132a1 /src/main/java/org/traccar/Context.java
parent7f0692101a017f33ffb984e6df92e5dbef6ce71b (diff)
downloadtrackermap-server-8fe1e679935688676f7139bb9ed6dc61838d0e2f.tar.gz
trackermap-server-8fe1e679935688676f7139bb9ed6dc61838d0e2f.tar.bz2
trackermap-server-8fe1e679935688676f7139bb9ed6dc61838d0e2f.zip
Migrate SMS config keys
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java4
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 438c99a6d..9a382adb4 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -305,7 +305,7 @@ public final class Context {
identityManager = deviceManager;
- if (config.getBoolean("web.enable")) {
+ if (config.hasKey(Keys.WEB_PORT)) {
webServer = new WebServer(config);
}
@@ -315,7 +315,7 @@ public final class Context {
tripsConfig = initTripsConfig();
- if (config.getBoolean("sms.enable")) {
+ if (config.hasKey(Keys.SMS_HTTP_URL)) {
smsManager = new HttpSmsClient();
}