1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix tcp status message

This commit is contained in:
Nick O'Leary 2015-07-02 10:56:27 +01:00
parent b2d7f079b7
commit 35cd7cf2b8

View File

@ -307,7 +307,7 @@ module.exports = function(RED) {
var remoteDetails = socket.remoteAddress+":"+socket.remotePort;
node.log(RED._("tcpin.status.connection-from",{host:socket.remoteAddress, port:socket.remotePort}));
connectedSockets.push(socket);
node.status({text:connectedSockets.length+" "+"tcpin.status.connections")});
node.status({text:connectedSockets.length+" "+"tcpin.status.connections"});
socket.on('timeout', function() {
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
socket.end();