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

Multi-interface support (with conflict resolved). #42

Closed
wants to merge 10 commits into from

Conversation

panta
Copy link

@panta panta commented Jun 15, 2017

This is just the work of @bnielsen1965, brought up to date with @mafintosh master and with the conflict resolved.

@panta panta mentioned this pull request Jun 15, 2017
@FantasticFiasco
Copy link

Would love to see this merged and released. Keep up the good work!

@FantasticFiasco
Copy link

Any news on this?

sendSockets[si].on('listening', function () {
if (opts.multicast !== false) {
this.setMulticastTTL(opts.ttl || 255)
this.setMulticastLoopback(opts.loopback !== false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not enough to send packets on this interface. For example, Linux will select default interface.

To achieve sending via proper interface the call this.setMulticastInterface(iterfaceAddress) is required. Because this is a callback, I suggest convert entire loop body to immediately invoked function with interface address as a parameter.

@alexey-martynov
Copy link

Looking at these changes I'm not sure that requiring all interface list on multihomed system is a good idea. Everybody will be required to implement something similar to allInterfaces() function.

@alexey-martynov
Copy link

Possible fix lives in https://github.com/alexey-martynov/multicast-dns, branch 'multihomed-mutlicast'. I can create a new pull request.

@mafintosh
Copy link
Owner

mafintosh commented Aug 14, 2018

We have multi interface support in master now. Thanks for the PR though!

@mafintosh mafintosh closed this Aug 14, 2018
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

Successfully merging this pull request may close these issues.

None yet

6 participants