mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
The topic filter comparer now checks for e.g. "foo/" matching "foo/#".
This commit is contained in:
@@ -31,6 +31,13 @@ namespace MQTTnet.Server
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Check for e.g. foo/ matching foo/#
|
||||
if (sPos == sLen - 2
|
||||
&& filter[sPos] == LevelSeparator
|
||||
&& filter[sPos + 1] == MultiLevelWildcard)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
sPos++;
|
||||
|
||||
Reference in New Issue
Block a user