Update 05-tls.js

This commit is contained in:
Dave Conway-Jones 2024-12-03 14:35:56 +00:00
parent e4e3e0be7b
commit fbf2c7b570
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

View File

@ -32,8 +32,7 @@ module.exports = function(RED) {
this.alpnprotocol = (n.alpnprotocol||"").trim();
if ((certPath && certPath.length > 0) || (keyPath && keyPath.length > 0) || (caPath && caPath.length > 0)) {
if ( (certPath.length > 0) !== (keyPath.length > 0)) {
if ( (certPath && certPath.length > 0) !== (keyPath && keyPath.length > 0)) {
this.valid = false;
this.error(RED._("tls.error.missing-file"));
return;