make server visible on network

This commit is contained in:
Zoey 2024-04-20 00:37:58 -07:00
parent 55bbb3a59c
commit 167b8c6bf9
No known key found for this signature in database
GPG key ID: 8611B896D1AAFAF2

View file

@ -56,7 +56,7 @@ impl Server {
/// creates a new server with the given level
pub async fn new_with_level(config: ServerConfig, level: Level) -> std::io::Result<Self> {
let listener = TcpListener::bind("127.0.0.1:25565").await?;
let listener = TcpListener::bind("0.0.0.0:25565").await?;
Ok(Self {
data: Arc::new(RwLock::new(ServerData {