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:
parent
b2d7f079b7
commit
35cd7cf2b8
@ -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:connectedSockets.length+" "+"tcpin.status.connections"});
|
||||||
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