-
Notifications
You must be signed in to change notification settings - Fork 433
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
Panic when solving URI with mDNS #941
Comments
panic is here https://github.com/smoltcp-rs/smoltcp/blob/v0.11.0/src/iface/interface/mod.rs#L882 it happens because you haven't configured any ipv6 address in the interface. Are you actually intending to use IPv6? if no, disable it. if yes, configure an address. (we should probably look into preventing mDNS from trying to use ipv6 if you have no ipv6 addr, or at least not panic...) |
Note that the panic seems to already be fixed in the current git tree. You can try the git version adding this in your [patch.crates-io]
smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp.git" } |
The panic is still there, but in a different place: Line 615 in 8025752
There is a panic when there is no IPv4 or IPv6 address configured when sending to an IPv4 or IPv6 address respectively. We should handle this case differently. |
I tried to enable the following feature in embassy-net #[cfg(feature = "socket-mdns")] to be able to resolve this URI homeassistant.local in rp pico. I was able to enable mdns feature but when trying to resolve the URI smoltcp panics with
The text was updated successfully, but these errors were encountered: