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

undo regression to tcp-in node

To fix #3454
This commit is contained in:
Dave Conway-Jones 2022-02-21 20:03:25 +00:00
parent 5f0ea85f47
commit 25f4fbf2bb
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

View File

@ -229,7 +229,7 @@ module.exports = function(RED) {
buffer = buffer+data;
var parts = buffer.split(node.newline);
for (var i = 0; i<parts.length-1; i+=1) {
msg = {topic:node.topic, payload:parts[i] + node.newline.trimEnd(), ip:socket.remoteAddress, port:socket.remotePort};
msg = {topic:node.topic, payload:parts[i], ip:socket.remoteAddress, port:socket.remotePort};
msg._session = {type:"tcp",id:id};
node.send(msg);
}