feather-rs / feather

A Minecraft server implementation in Rust
Apache License 2.0
2.58k stars 143 forks source link

Server with IPv6 address on Linux #496

Closed qualterz closed 2 years ago

qualterz commented 2 years ago

Description

On Windows the server with address 0.0.0.0 and port 25565, which are defined in config.toml, automatically binds to the socket with address [::]:25565, but on Linux with the same configuration, the server binds to 0.0.0.0:25565. If we change in config.toml address to [::], we get a parse error. This makes it possible to connect to the server using only the IPv4 address.

Defman commented 2 years ago

This line https://github.com/feather-rs/feather/blob/3635ab54d38aeb94e0c1555b84bb7b204d1d2631/feather/server/src/config.rs#L81 should be changed to IpAddr.

ambeeeeee commented 2 years ago

We can close this now