diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:55:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 16:55:02 +1200 |
commit | 96a8551d16506809887cb28d0c61c1ab5cb0ce3c (patch) | |
tree | b516bc3fefe3af48cd2d2b47feda0d5f9175d625 /src/org | |
parent | c137c1056890b0590d15239a06493275e88c405d (diff) | |
download | trackermap-server-96a8551d16506809887cb28d0c61c1ab5cb0ce3c.tar.gz trackermap-server-96a8551d16506809887cb28d0c61c1ab5cb0ce3c.tar.bz2 trackermap-server-96a8551d16506809887cb28d0c61c1ab5cb0ce3c.zip |
Simplify protocol config
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/ServerManager.java | 6 |
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 { |