mirror of https://github.com/node-red/node-red.git
Fix "connected to ..." log string in tcp in/out nodes using TLS
It was wrongly displayed as "status.connected" instead of e.g. "connected to 127.0.0.1:6789" Also remove the separator spaces from function invocation to be equal to the invocation in non-TLS mode in the else path below.pull/5484/head
parent
661828b208
commit
9b3e9ee4b7
|
|
@ -111,7 +111,7 @@ module.exports = function(RED) {
|
|||
client = tls.connect(node.port, connOpts, function() {
|
||||
buffer = (node.datatype == 'buffer') ? Buffer.alloc(0) : "";
|
||||
node.connected = true;
|
||||
node.log(RED._("status.connected", {host: node.host, port: node.port}));
|
||||
node.log(RED._("tcpin.status.connected",{host:node.host,port:node.port}));
|
||||
node.status({fill:"green",shape:"dot",text:"common.status.connected",_session:{type:"tcp",id:id}});
|
||||
});
|
||||
}
|
||||
|
|
@ -349,7 +349,7 @@ module.exports = function(RED) {
|
|||
client = tls.connect(node.port, connOpts, function() {
|
||||
// buffer = (node.datatype == 'buffer') ? Buffer.alloc(0) : "";
|
||||
node.connected = true;
|
||||
node.log(RED._("status.connected", {host: node.host, port: node.port}));
|
||||
node.log(RED._("tcpin.status.connected",{host:node.host,port:node.port}));
|
||||
node.status({fill:"green",shape:"dot",text:"common.status.connected"});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue