Skip to content

Add AddrV6IPAddr to support link-local addresses#115

Merged
DanStough merged 2 commits intohashicorp:mainfrom
jcodybaker:ipv6-link-local-support
Mar 21, 2024
Merged

Add AddrV6IPAddr to support link-local addresses#115
DanStough merged 2 commits intohashicorp:mainfrom
jcodybaker:ipv6-link-local-support

Conversation

@jcodybaker
Copy link
Copy Markdown
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
Copy Markdown

hashicorp-cla commented Feb 19, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
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
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