pull/2382/merge
Stefan Kleeschulte 2025-03-07 00:23:23 +00:00 committed by GitHub
commit 0438297eaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,10 @@ module.exports = function(RED) {
} catch (e) {
node.error(RED._("mqtt.errors.invalid-json-parse"), { payload: payload, topic: topic, qos: packet.qos, retain: packet.retain }); return;
}
if (this.brokerurl.indexOf("mqtts://") > -1 && (!this.usetls || !n.tls)) {
// Default to validating the server cert
this.verifyservercert = true;
}
} else {
node.error((RED._("mqtt.errors.invalid-json-string")), { payload: payload, topic: topic, qos: packet.qos, retain: packet.retain }); return;
}