Open richardschneider opened 6 years ago
Is there any reason why #26 has not been merged? Would be great if this issue would be fixed as it's anoying to have to check address validity on the client side.
@TillAlex thank you for your interest in this package.
Since writing this I have the following issues and must admit I've simply moved this into the two hard bucket. Perhaps as a consumer of the package you can shed some light.
master
I did not find anything about loop back addresses in the documents so I don't know what behavior is expected. For me it would make sense if only replies on the loopback interface contain the loopback address.
In theory this change should not break other packages as the filtered addresses can not be expected to be reachable anyway. The current behavior is not standard-compliant and should not be relied on. However, there can be packages relying on this behavior...
Hi @richardschneider, I've also encountered this issue and would like to help resolve it, if needed. What's currently missing from #26?
@jbrestan This needs testing on a machine with multiple interfaces. Do you have this? If so, I'll rebase on master and then you can give it try.
Yes, having multiple interfaces was how we found out we may have this issue. I can test it on that setup.
I've rebased the PR, so you can test the latest bits.
Thank you. I was finally able to test it on this branch, and while #26 definitely filters out some unreachable combinations, I'm still seeing weird answers being sent out. I'll add those as comments to the PR. I'll try to dig deeper to find why I'm seeing those, but you most likely know more about this topic, so I wanted to run those comments by you first.
I just merged #26 into master and tested it using multiple interfaces. Everythings works as expected.
It would be great if this PR could be merged. If you are unsure if this change breaks other projects you could make it configurable and deactivate it by default.
The behaviour without this fix is very anoying. I guess a lot of people using this library will sooner or later spend some hours to find this problem...
From https://tools.ietf.org/html/rfc6762#section-6.2