mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge 422ed371f717e11a163a0cd2ce3a785864c13810 into bb01f26f068b8e083e35fdf19dc9b36f8cf67068
This commit is contained in:
commit
82a380c193
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user