From fbb45a896183f11e40b4bfffa84612e48766602a Mon Sep 17 00:00:00 2001 From: dceejay Date: Tue, 24 Feb 2015 13:22:48 +0000 Subject: [PATCH] make udp node consistent with it's info.... (re params passed out) --- nodes/core/io/32-udp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/core/io/32-udp.js b/nodes/core/io/32-udp.js index a7968e3a9..efd6bc9aa 100644 --- a/nodes/core/io/32-udp.js +++ b/nodes/core/io/32-udp.js @@ -42,9 +42,9 @@ module.exports = function(RED) { server.on('message', function (message, remote) { var msg; if (node.datatype =="base64") { - msg = { payload:message.toString('base64'), fromip:remote.address+':'+remote.port }; + msg = { payload:message.toString('base64'), fromip:remote.address+':'+remote.port, ip:remote.address, port:remote.port }; } else if (node.datatype =="utf8") { - msg = { payload:message.toString('utf8'), fromip:remote.address+':'+remote.port }; + msg = { payload:message.toString('utf8'), fromip:remote.address+':'+remote.port, ip:remote.address, port:remote.port }; } else { msg = { payload:message, fromip:remote.address+':'+remote.port, ip:remote.address, port:remote.port }; }