azalea-rs / azalea

A collection of Rust crates for making Minecraft bots, clients, and tools.
https://azalea.matdoes.dev
MIT License
370 stars 47 forks source link

fixes trust_dns_resolver issue #112

Closed 1zun4 closed 9 months ago

1zun4 commented 9 months ago

Hi there,

For example, when trying to resolve play.pika-network.net it failed with the error: "Label contains invalid characters". By using Name::from_asciii(...) this problem is solved and we can resolve the domain successfully.

A debug before the fix:


redirecting to ServerAddress { host: "play_pika-network_net.pika.host.", port: 25565 }
srv_redirect_result: Err(ResolveError { kind: Proto(ProtoError { kind: Msg("Label contains invalid characters: Err(Errors { invalid_mapping, disallowed_by_std3_ascii_rules })") }) })
lookup_ip_result: Err(ResolveError { kind: Proto(ProtoError { kind: Msg("Label contains invalid characters: Err(Errors { invalid_mapping, disallowed_by_std3_ascii_rules })") }) })
Error: No IP found```