mirror of
https://github.com/zyllian/classics.git
synced 2025-01-18 03:32:41 -08:00
make server visible on network
This commit is contained in:
parent
55bbb3a59c
commit
167b8c6bf9
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ impl Server {
|
||||||
|
|
||||||
/// creates a new server with the given level
|
/// creates a new server with the given level
|
||||||
pub async fn new_with_level(config: ServerConfig, level: Level) -> std::io::Result<Self> {
|
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 {
|
Ok(Self {
|
||||||
data: Arc::new(RwLock::new(ServerData {
|
data: Arc::new(RwLock::new(ServerData {
|
||||||
|
|
Loading…
Add table
Reference in a new issue