aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
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();
}