Skip to content
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 AddrV6IPAddr to support link-local addresses #115

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

jcodybaker
Copy link
Contributor

IPv6 link-local IPs must be qualified with a zone (interface) to be useful. If the mDNS query is not bound to a specific interface, it's not possible in the current implementation to determine the correct zone from the ServiceEntry. This PR uses the source address of the mDNS response packet to determine the zone. This zone info is not carried by the net.IP datatype used for the current AddrV6 field, so this PR deprecates that address and adds the AddrV6IPAddr field of type *net.IPAddr.

@jcodybaker jcodybaker requested a review from a team as a code owner February 19, 2024 03:38
@hashicorp-cla
Copy link

hashicorp-cla commented Feb 19, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@DanStough DanStough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR. Looks solid to me!

@DanStough DanStough merged commit 73e338a into hashicorp:main Mar 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants