浏览代码

Merge pull request #274 from sebastienwarin/develop

Fix MqttProtocolVersion 3.1 client connection
release/3.x.x
Christian 6 年前
committed by GitHub
父节点
当前提交
44e5b2c2fd
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. +1
    -5
      Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs

+ 1
- 5
Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs 查看文件

@@ -205,11 +205,7 @@ namespace MQTTnet.Serializer
}
else
{
var buffer = new byte[6];
Array.Copy(protocolName, buffer, 4);
protocolName = stream.ReadBytes(2);
Array.Copy(protocolName, 0, buffer, 4, 2);

protocolName = protocolName.Concat(stream.ReadBytes(2)).ToArray();
if (protocolName.SequenceEqual(ProtocolVersionV310Name))
{
protocolVersion = MqttProtocolVersion.V310;


正在加载...
取消
保存