mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update 05-tls.js
This commit is contained in:
parent
e4e3e0be7b
commit
fbf2c7b570
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user