钩子函数中获取protocol连接方式均为mqtt,采用ws或Matt/tcp, String protocol = request.getClientinfo().getProtocol();显示均为mqtt

是在使用 ExHook 么?请详细描述下场景呢
另外参考下 常见问题汇总