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
Fix syntax errors
  • Loading branch information
elyscape committed Oct 14, 2022
commit b7eb3feaeeb5e19f5adc8d9b3f5ed9a4d669555f
6 changes: 3 additions & 3 deletions src/lib/Advertiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ function messageBusConnectionResult(bus: MessageBus): Promise<void> {
function dbusInvoke(bus: MessageBus,
destination: string,
path: string,
interface: string,
dbusInterface: string,
member: string,
others?: any): Promise<Any> {
others?: any): Promise<any> {
return new Promise((resolve, reject) => {
const command = {destination, path, interface, member, ...(others || {})};
const command = {destination, path, interface: dbusInterface, member, ...(others || {})};

// eslint-disable-next-line @typescript-eslint/no-explicit-any
bus.invoke(command, (err: any, result: any) => {
Expand Down