mirror of https://github.com/node-red/node-red.git
Merge 422ed371f7
into b9f24e510c
commit
0438297eaa
|
@ -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…
Reference in New Issue