mirror of https://github.com/node-red/node-red.git
Fix UDP node to not not use port if unassigned
parent
17f9829498
commit
4f23847546
|
@ -178,7 +178,7 @@ module.exports = function(RED) {
|
|||
var sock;
|
||||
var p = this.outport || this.port || "0";
|
||||
node.tout = setTimeout(function() {
|
||||
if (udpInputPortsInUse[p]) {
|
||||
if ((p != 0) && udpInputPortsInUse[p]) {
|
||||
sock = udpInputPortsInUse[p];
|
||||
if (node.multicast != "false") {
|
||||
sock.setBroadcast(true);
|
||||
|
|
Loading…
Reference in New Issue