fixed error changing setting in mDNS
This commit is contained in:
parent
16589e65f6
commit
9ec642237c
|
@ -187,9 +187,10 @@ module.exports.create = function (deps, config) {
|
||||||
promise = stop().then(start);
|
promise = stop().then(start);
|
||||||
} else {
|
} else {
|
||||||
// Can't check membership, so just add the current broadcast address to make sure
|
// Can't check membership, so just add the current broadcast address to make sure
|
||||||
// it's set. Hopefully nothing bad happens by adding multiple addresses or adding
|
// it's set. If it's already set it will throw an exception (at least on linux).
|
||||||
// the same address multiple times.
|
try {
|
||||||
socket.addMembership(config.mdns.broadcast);
|
socket.addMembership(config.mdns.broadcast);
|
||||||
|
} catch (e) {}
|
||||||
promise = Promise.resolve();
|
promise = Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue