#How to disable ipv6 with cargo

5 messages · Page 1 of 1 (latest)

half perch
#

is there any env varible that will disable ipv6 with cargo?
cargo is not working because my device does not have a ipv6 address I think,
and I dont plan on looking for supporting ipv6, so I am fine setting a env varible for it (linux)

spring bronze
#

Cargo doesn't require ipv6. What error(s) are you seeing exactly?

half perch
#

```error: failed to get anyhow as a dependency of package gameserver-rs v0.1.0 (/usr/src/app)

Caused by:
download of an/yh/anyhow failed

Caused by:
failed to download from https://index.crates.io/an/yh/anyhow

Caused by:
[28] Timeout was reached (Resolving timed out after 30001 milliseconds)

[Running 'cargo run']
Updating crates.io index
warning: spurious network error (3 tries remaining): [6] Could not resolve hostname (Could not resolve host: index.crates.io)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (Resolving timed out after 30000 milliseconds)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (Operation timed out after 40048 milliseconds with 0 bytes received)

#

ok so turns out, its a DNS issue, uhh, ill try to debug it

#

thought it was a ipv6 issue