Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add systemd-resolved mDNS advertiser support #965

Merged
merged 9 commits into from
Oct 31, 2022
Prev Previous commit
Next Next commit
Appease ESLint
  • Loading branch information
elyscape committed Oct 3, 2022
commit 8e656b7c578c02c11e9a938ad8ebbf9d2033e56b
8 changes: 7 additions & 1 deletion src/lib/Advertiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,13 @@ export class ResolvedAdvertiser extends EventEmitter implements Advertiser {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private static resolvedInvoke(bus: MessageBus, member: string, others?: any): Promise<any> {
return new Promise((resolve, reject) => {
const command = { destination: "org.freedesktop.resolve1", path: "/org/freedesktop/resolve1", interface: "org.freedesktop.resolve1.Manager", member, ...(others || {}) };
const command = {
destination: "org.freedesktop.resolve1",
path: "/org/freedesktop/resolve1",
interface: "org.freedesktop.resolve1.Manager",
member,
...(others || {}),
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
bus.invoke(command, (err: any, result: any) => {
if (err) {
Expand Down