aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-16 20:47:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-16 20:47:59 -0700
commitee30e6e63f110476f557ed4ca8a081eb5b589101 (patch)
treee4a6deb28416b8aa613d5ecb383e6ebeecc79a6c /src/main/java/org/traccar/config
parentca4488bd093d25afa494ab30e117fdef98e20013 (diff)
downloadtrackermap-server-ee30e6e63f110476f557ed4ca8a081eb5b589101.tar.gz
trackermap-server-ee30e6e63f110476f557ed4ca8a081eb5b589101.tar.bz2
trackermap-server-ee30e6e63f110476f557ed4ca8a081eb5b589101.zip
Parameter to enable protocols (fix #3991)
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 1217ab94c..2190f82f7 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1211,6 +1211,16 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * List of protocols to enable. If not specified, Traccar enabled all protocols that have port numbers listed.
+ * The value is a comma-separated list of protocol names.
+ *
+ * Example value: teltonika,osmand
+ */
+ public static final ConfigKey<String> PROTOCOLS_ENABLE = new StringConfigKey(
+ "protocols.enable",
+ List.of(KeyType.CONFIG));
+
+ /**
* List of protocols for overriding time. If not specified override is applied globally. List consist of protocol
* names that can be separated by comma or single space character.
*/