-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add ipv6 support #26
Add ipv6 support #26
Conversation
Co-authored-by: Robert Fratto <[email protected]>
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.
This is already looking good, some nits.
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.
LGTM, will merge this later today to let @rfratto take a look.
(Let's just run go mod tidy to get rid of extra noise)
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.
LGTM following feedback
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.
Thanks!
The implementation is inspired from the one in dskit with a few twists to match our case.
Given a list of interfaces the code will return the best IP it can find.
Best is defined in the following order:
Instead of sending a list of interfaces, the user can send "all" and the code will retrieve all available interfaces and find the best IP amongst these.