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