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

Bonjour constructor does not allow to set options for underlaying multicast-dns server #58

Open
ArkadiuszPiznal opened this issue Aug 2, 2024 · 1 comment

Comments

@ArkadiuszPiznal
Copy link

According to documentation of Bonjour service "The options are optional and will be used when initializing the underlying multicast-dns server. For details see the multicast-dns documentation."

But this is not true because constructor takes parameters like constructor(opts: Partial<ServiceConfig> = {}, errorCallback?: Function | undefined)

ServiceConfig does not have properties that corresponds to multicast-dns server options like interface, which I need.

Moreover if I try provide options like { interface: '...' } as any the interface param is ommited anyway.

@zehnm
Copy link

zehnm commented Nov 1, 2024

We have just converted our project to TS and now face the same issue. How can I set a specific network interface for mDNS advertisement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants