-
Notifications
You must be signed in to change notification settings - Fork 287
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
fix: Fake broadcast address for 127.x.x.x #2760
base: master
Are you sure you want to change the base?
Conversation
@iacore does it work in parallel with normal LAN discovery? meaning will it use lo: and eth0: at the same time? |
the code says yes, so i guess yes.
i have no idea how to do that. sorry. |
it works pretty well. nicely done. what would it do on localhost in ipv6 ? |
@iphydf @Green-Sky this PR works for me. are there any security implications of this? or other bad things in your view? |
No, and I'm afraid that the whole broadcast logic doesn't take ipv6 into account. See https://github.com/TokTok/c-toxcore/pull/2760/files#diff-907bc1ea87830b3899d91912c9b7c2eb62d713dadf887012b60bc79aa9bc4b01R186 |
i added a custom test in my branch to check that its actually working: |
ipv4 should be available everywhere, at least for localhost.
will have to check, code looks ok beside some styling nitpicks. |
Closes #2749
Thanks @zoff99 for the idea
This change is