mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Fix mins Name resolution ordering - thanks @PTS93
Fix to close #155 Pushed to npm as 0.0.10
This commit is contained in:
parent
d1e5025566
commit
c28f46ec9d
@ -25,7 +25,11 @@ module.exports = function(RED) {
|
||||
RED.nodes.createNode(this, n);
|
||||
this.topic = n.topic || "";
|
||||
this.service = n.service;
|
||||
var browser = mdns.createBrowser(this.service);
|
||||
var sequence = [
|
||||
mdns.rst.DNSServiceResolve(),
|
||||
mdns.rst.getaddrinfo({families: [4] })
|
||||
];
|
||||
var browser = mdns.createBrowser(this.service,{resolverSequence: sequence});
|
||||
var node = this;
|
||||
|
||||
browser.on('serviceUp', function(service) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-discovery",
|
||||
"version" : "0.0.9",
|
||||
"version" : "0.0.10",
|
||||
"description" : "A Node-RED node that uses Bonjour / Avahi to discover nearby services.",
|
||||
"dependencies" : {
|
||||
"mdns" : "2.2.*"
|
||||
|
Loading…
Reference in New Issue
Block a user