mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
correct TCP node server status message
This commit is contained in:
parent
6d84b1bb8d
commit
1bf72a0bc3
@ -307,7 +307,7 @@ module.exports = function(RED) {
|
|||||||
var remoteDetails = socket.remoteAddress+":"+socket.remotePort;
|
var remoteDetails = socket.remoteAddress+":"+socket.remotePort;
|
||||||
node.log(RED._("tcpin.status.connection-from",{host:socket.remoteAddress, port:socket.remotePort}));
|
node.log(RED._("tcpin.status.connection-from",{host:socket.remoteAddress, port:socket.remotePort}));
|
||||||
connectedSockets.push(socket);
|
connectedSockets.push(socket);
|
||||||
node.status({text:connectedSockets.length+" "+"tcpin.status.connections"});
|
node.status({text:RED._("tcpin.status.connections",{count:connectedSockets.length})});
|
||||||
socket.on('timeout', function() {
|
socket.on('timeout', function() {
|
||||||
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
||||||
socket.end();
|
socket.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user