From 45eba5cabd4f14fd83b9727f1c97ce593b8b18e9 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 25 Oct 2016 20:33:26 +0100 Subject: [PATCH] tidy up udp node - repeat setting of var --- nodes/core/io/32-udp.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodes/core/io/32-udp.js b/nodes/core/io/32-udp.js index c03baf5de..736a3fbd2 100644 --- a/nodes/core/io/32-udp.js +++ b/nodes/core/io/32-udp.js @@ -43,9 +43,7 @@ module.exports = function(RED) { server = udpInputPortsInUse[this.port]; // re-use existing } - var opts = {type:node.ipv, reuseAddr:true}; if (process.version.indexOf("v0.10") === 0) { opts = node.ipv; } - var server = dgram.createSocket(opts); // default to udp4 server.on("error", function (err) { if ((err.code == "EACCES") && (node.port < 1024)) {