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
1 changed files with 1 additions and 1 deletions

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