-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Do not include network aliases (identified by same MAC) #370
Conversation
Solves #355 |
Co-authored-by: Jan Romann <[email protected]>
Pull Request Test Coverage Report for Build 5175877906
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9362935462Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Additionally to the change request : how this detects network aliases? Is it secured that the main entry always comes before the Alia's in the list? No other option to detect them? Could I see such a list with aliases included please? |
One of them gets included. No other way to see other than matching macs. |
Co-authored-by: Jan Romann <[email protected]>
Good catch on my copy mistake. Scenario is when having multiple ips on the same interface. |
Can you maybe post a code snippet or script for reproducing the error? I tried adding an alias to a network interface (using something along the lines of |
Ip addr add to add a second ip to an interface. It's not alias but additional ip on same interface. |
Hm .. but why this do not work? Do we not listen on that up, so multiple listeners should work. Which error exactly you get? |
Adding second ip to existing wifi interface: allAddresses will list both IPs, while being the same interface.
|
Thank you for the stack trace! I think the problem here is actually that the server tries to join the same multicast group twice. For some reason, it iterates over the list of IP addresses instead of a list of network interfaces. Therefore, if you add another IP address (which appears to be used as an identifier here), calling Maybe we could try replacing the addresses as identifiers with |
Since |
@Apollon77 What still needs to be done to move this forward? I don't see how I can further influence it. |
@htool Maybe see the last comment from @JKRhb as reveiw feedback:
And rename method or add acomment describing the behavior and why? Then I think we can merge here. @JKRhb any other opinion? |
I've added a comment to explain why the repeating MAC check is there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @htool, looks good to me :)
Unfortunately, the tests under Node 20 are still failing, but since that is a general problem that is also present on the main branch, I guess we can go forward with merging this PR. Hopefully, we'll be able to find a fix for that soon.
Starting a listener on a network alias fails, so do not include them in allAddresses function.