Skip to content

Commit

Permalink
Fix response
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed May 25, 2021
1 parent 76e4b63 commit 94a958a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/traccar/protocol/TaipPrefixEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public TaipPrefixEncoder(Protocol protocol) {
@Override
protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
if (Context.getConfig().getBoolean(Keys.PROTOCOL_PREFIX.withPrefix(protocol.getName()))) {
Unpooled.wrappedBuffer(Unpooled.wrappedBuffer(new byte[] {0x20, 0x20, 0x06, 0x00}), msg);
out.add(Unpooled.wrappedBuffer(Unpooled.wrappedBuffer(new byte[] {0x20, 0x20, 0x06, 0x00}), msg));
} else {
out.add(msg);
}
Expand Down

0 comments on commit 94a958a

Please sign in to comment.