aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 2a6ef1de8..ae0f4a57e 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -253,11 +253,7 @@ public class ServerManager {
}
private boolean isProtocolEnabled(String protocol) {
- String enabled = Context.getProps().getProperty(protocol + ".enable");
- if (enabled != null) {
- return Boolean.valueOf(enabled);
- }
- return false;
+ return Context.getProps().containsKey(protocol + ".port");
}
private void initProtocolDetector() throws SQLException {