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
Markus Heidelberg 2026-02-13 15:08:42 +01:00
parent 661828b208
commit 9b3e9ee4b7
1 changed files with 2 additions and 2 deletions

View File

@ -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"});
});
}