small change to udp httpadmin

as it refers to both in and pout
This commit is contained in:
Dave Conway-Jones 2016-11-10 20:19:55 +00:00
parent 0a5a42b32a
commit 9cc1b03c56
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ module.exports = function(RED) {
try { server.bind(node.port,node.iface); } try { server.bind(node.port,node.iface); }
catch(e) { } // Don't worry if already bound catch(e) { } // Don't worry if already bound
} }
RED.httpAdmin.get('/udp-ports/:id', RED.auth.needsPermission('udp-in.read'), function(req,res) { RED.httpAdmin.get('/udp-ports/:id', RED.auth.needsPermission('udp-ports.read'), function(req,res) {
res.json(Object.keys(udpInputPortsInUse)); res.json(Object.keys(udpInputPortsInUse));
}); });
RED.nodes.registerType("udp in",UDPin); RED.nodes.registerType("udp in",UDPin);