From b73d743d0098b7497120a266c37700b6cb4c2fe4 Mon Sep 17 00:00:00 2001 From: tomoaki Date: Thu, 28 May 2020 11:57:30 +0900 Subject: [PATCH] BugFix of #205 Signed-off-by: tomoaki --- MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp b/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp index c44d95b..03f3415 100644 --- a/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp +++ b/MQTTSNGateway/src/MQTTSNGWClientRecvTask.cpp @@ -192,8 +192,8 @@ void ClientRecvTask::run() { if ( client ) { - /* Client exists. Set SensorNet Address of it, if Client is not secure one. */ - if ( !client->isSecureNetwork() ) + /* Authentication is not required */ + if ( _gateway->getGWParams()->clientAuthentication == false) { client->setClientAddress(senderAddr); }