Parcourir la source

Add support for complex device IDs.

release/3.x.x
Christian Kratky il y a 7 ans
Parent
révision
b3a6919ea0
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. +0
    -5
      MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs

+ 0
- 5
MQTTnet.Core/Serializer/DefaultMqttV311PacketSerializer.cs Voir le fichier

@@ -354,11 +354,6 @@ namespace MQTTnet.Core.Serializer
{
throw new MqttProtocolViolationException("CleanSession must be set if ClientId is empty [MQTT-3.1.3-7].");
}

if (!string.IsNullOrEmpty(packet.ClientId) && !Regex.IsMatch(packet.ClientId, "^[a-zA-Z0-9]*$"))
{
throw new MqttProtocolViolationException("ClientId contains invalid characters [MQTT-3.1.3-5].");
}
}

private void ValidatePublishPacket(MqttPublishPacket packet)


Chargement…
Annuler
Enregistrer