Skip to content
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

Document how to increase the smoltcp DNS max server count #6

Open
SergioGasquez opened this issue Aug 3, 2023 · 0 comments
Open

Document how to increase the smoltcp DNS max server count #6

SergioGasquez opened this issue Aug 3, 2023 · 0 comments

Comments

@SergioGasquez
Copy link

In some routers, the program crashes with the following panic:

I (270) boot: Disabling RNG early entropy source...
start connection task
Device capabilities: Ok(EnumSet(Client | AccessPoint))
Starting wifi
Wifi started!
About to connect...
Wifi connected!
Waiting to get IP address...
 
 
!! A panic occured in '/home/sergio/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/socket/dns.rs', at line 170, column 49
 
PanicInfo {
    payload: Any { .. },
    message: Some(
        called `Result::unwrap()` on an `Err` value: (),
    ),
    location: Location {
        file: "/home/sergio/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/socket/dns.rs",
        line: 170,
        col: 49,
    },
    can_unwind: true,
}

The solution was proposed by @MabezDev in #1 (comment):

For my router I also needed to bump the number of DNS servers smoltcp has capacity for with:

# .cargo/config.toml
[env]
SMOLTCP_DNS_MAX_SERVER_COUNT = "3"

Be warned that you have to do a clean build for those changes to take effect, see: rust-lang/cargo#10358

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

No branches or pull requests

1 participant