diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-07-17 11:58:45 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-07-18 14:04:01 -0400 |
commit | 96d8ea7322d1a588dd2d4cfac73d5c049ebe3faf (patch) | |
tree | 367e093472e63fbbd921df752af6f34638f3c281 /src/main/java/org/traccar/BaseProtocolEncoder.java | |
parent | 509d26db7efafe965f5cc6e1a1fba6b30e9556cf (diff) | |
download | trackermap-server-96d8ea7322d1a588dd2d4cfac73d5c049ebe3faf.tar.gz trackermap-server-96d8ea7322d1a588dd2d4cfac73d5c049ebe3faf.tar.bz2 trackermap-server-96d8ea7322d1a588dd2d4cfac73d5c049ebe3faf.zip |
Make device password group configurable
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolEncoder.java')
-rw-r--r-- | src/main/java/org/traccar/BaseProtocolEncoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolEncoder.java b/src/main/java/org/traccar/BaseProtocolEncoder.java index 69d1fe6f5..b6df07b98 100644 --- a/src/main/java/org/traccar/BaseProtocolEncoder.java +++ b/src/main/java/org/traccar/BaseProtocolEncoder.java @@ -46,7 +46,7 @@ public abstract class BaseProtocolEncoder extends ChannelOutboundHandlerAdapter protected void initDevicePassword(Command command, String defaultPassword) { if (!command.getAttributes().containsKey(Command.KEY_DEVICE_PASSWORD)) { String password = Context.getIdentityManager() - .getDevicePassword(command.getDeviceId(), defaultPassword); + .getDevicePassword(command.getDeviceId(), getProtocolName(), defaultPassword); command.set(Command.KEY_DEVICE_PASSWORD, password); } } |