Added clinetID=empty then reject connect rule

This commit is contained in:
selva.andre
2014-07-26 18:22:32 +02:00
parent 8185811188
commit bd3c4cb40c
6 changed files with 61 additions and 10 deletions
@@ -153,8 +153,8 @@ public class ConnectDecoder extends DemuxDecoder {
int keepAlive = in.readUnsignedShort();
message.setKeepAlive(keepAlive);
if ((remainingLength == 12 && message.getProcotolVersion() == 3) ||
(remainingLength == 10 && message.getProcotolVersion() == 4)) {
if ((remainingLength == 12 && message.getProcotolVersion() == VERSION_3_1) ||
(remainingLength == 10 && message.getProcotolVersion() == VERSION_3_1_1)) {
out.add(message);
return;
}