FreeBSD: Skip inet6 addresses matching ::1
Fixes #1835
@feld please add DCO
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
After writing https://github.com/chef/ohai/pull/1841 I THINK I know what the problem is here.
FreeBSD reports no scope for global addresses. Further, it uses scopeIDs, not scopes, so the sorting that happens here doesn't work at all.
So the right fix here is to modify this code to:
- Convert scopeIds into scope names
- If no scopeID is there, just set it to 'global' which seems to be what FreeBSD is assuming.
@feld - ping?
@feld following up
@dafyddcrosby wants to look at this - will wait to close.
@dafyddcrosby wants to look at this - will wait to close.
If If I haven't tested this by December 3rd's community PR review (or if @feld responds), can close then
@dafyddcrosby wants to look at this - will wait to close.
If If I haven't tested this by December 3rd's community PR review (or if @feld responds), can close then
@jaymzh Didn't get time over the weekend, and don't know when I will in the next few weeks, so let's close for now.
Closing due to no response from original author.