-
Notifications
You must be signed in to change notification settings - Fork 136
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
Fixes #50. #51
Fixes #50. #51
Conversation
LGTM once you add some tests, @dekobon. But...
...I feel like that shouldn't necessarily be supported. The reason we use Docker as the build platform is to avoid having to support every local configuration in existence; Golang developers in particular have a bad habit of making all kinds of assumptions about |
Interesting, so it groups IPV4 and IPV6 addressed together. @tgross - Maybe I'm over thinking this, but; Golang docs don't document this behavior. I hope we aren't relying something undocumented about the order in which these IPs are returned. Should we instead split & parse these addresses and explicitly pick the one which is IPV4? Should we have a flag to prefer IPV4 over IPV6? |
@justenwalker and @tgross: do we need to ticket an issue to add IPv6 support to Containerbuddy (and for users to specify their preference)? |
You can peek at what golang is doing here: https://golang.org/src/syscall/netlink_linux.go Also, it looks like we are in good company about IPV6 confusion: hashicorp/consul#529 Maybe we want to let the user specify what what IP to advertise. |
Ensuring we have IPv6 support is likely to be a bit of extra effort to make sure we're not making IPv4 assumptions elsewhere in the code. Here's what I recommend:
|
This LGTM. I've opened #52 for further discussion of the IPv6 issue. |
I've been trying to execute the unit tests on my local workstation outside of the docker build environment. The tests were failing on IP parsing. Since this would be a quick fix, I went ahead and made the changes. Please tell me what you think.