【发布时间】:2020-01-28 18:06:16
【问题描述】:
我的蚊子中有 acl 文件:
user b
topic read s1#
topic write s1#
topic write s2
topic read s2
pattern write s3_%c#
pattern read s3_%c#
pattern write s4_%c
pattern read s4_%c
pattern write s5_%u#
pattern read s5_%u#
pattern write s6_%u
pattern read s6_%u
从客户端 ID abc 到主题 s4_abc 的请求工作正常:
mosquitto_pub -h servername -t s4_abc -m "test" -p 1883 -u b -P b -i abc -d
从客户端 ID abc 向主题 s3_abcA 的以下请求失败:
mosquitto_pub -h servername -t s3_abcA -m "test" -p 1883 -u b -P b -i abc -d
为什么会失败?我期待模式 s3_%c# 表示“s3_abc”之后主题中的任何短语都可以。
【问题讨论】: