decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
738 stars 291 forks source link

multi: Use index for IPv6 zone. #3303

Closed davecgh closed 5 months ago

davecgh commented 5 months ago

Not all OSes, Windows being a notable example, support using the interface name as the zone id of IPv6 link local unicast and multicast addresses. However, they all support using the interface index.

Thus, in order to ensure proper behavior on all supported OSes, this modifies the address normalization logic for interface names to append the interfaces index as the IPv6 zone for link local unicast and multicast addresses instead of the passed address.