Skip to content

Conversation

@adienakhmad
Copy link

fixes #3

Before this change the library will always crash with SocketException: no route to host when mdns is used on IPv6 interface with a scoped address e.g. [FE80::1%1]

The root cause was because the multicast address for IPv6 didn't specify a scope ID for such cases.

This commit fixes it by first checking if the local endpoint is an IPv6 link local, if true, then it will create and use a scoped multicast address. The resulting multicast address is then stored for reuse.

Before this change the library will always crash with "SocketException: no route to host" when used on IPv6 interface with a scoped address e.g.[FE80::1%1].

The root cause was because the multicast address for IPv6 didn't specify a scope ID for such cases.

This commit fixes it by first checking if the local endpoint is an IPv6 link local, if true, it will create and use a scoped multicast address for mdns. The resulting multicast address is then stored for reuse.
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.

mdns crash on multiple IPv6 link-local

1 participant