You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Link-local addresses returned without scope. #1567
But parsed_scoped_addresses is explicitly documented to return properly scoped link-local addresses "qualified with %<interface_index> when available".
Yeah that is something I am looking into it. Unfortunately, we don't get the interface id when a IPv4 frame is received on our listen socket.
There are two ways how to get the interface id:
Using packet info auxiliary data ((with socket options IP_PKTINFO/IPV6_PKTINFO). However, that doesn't work with the Python asyncio transport as is, we'd need to spin our own thing.
Use a listen socket per interface.
I have the second option locally in a test branch, I need to clean things up a bit first, but I intend to create a PR soon.
Activity
bdraco commentedon Apr 16, 2025
Looks like the response comes in over IPv4 first so we don't associate a scope to it. Probably not an easy problem to solve.
agners commentedon Apr 16, 2025
Yeah that is something I am looking into it. Unfortunately, we don't get the interface id when a IPv4 frame is received on our listen socket.
There are two ways how to get the interface id:
IP_PKTINFO/IPV6_PKTINFO). However, that doesn't work with the Python asyncio transport as is, we'd need to spin our own thing.I have the second option locally in a test branch, I need to clean things up a bit first, but I intend to create a PR soon.
bdraco commentedon May 20, 2026
@bluetoothbot fix
fix: preserve scope_id when scoped AAAA arrives alongside unscoped