diff --git a/src/minecraft/client/client.rs b/src/minecraft/client/client.rs index 47b168b..a091297 100644 --- a/src/minecraft/client/client.rs +++ b/src/minecraft/client/client.rs @@ -6,7 +6,7 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2026/05/07 17:23:09 by tomoron #+# #+# */ -/* Updated: 2026/06/12 19:04:11 by tomoron ### ########.fr */ +/* Updated: 2026/06/13 17:43:46 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -74,7 +74,7 @@ impl Client { let conn = &mut self.db_pool.get().unwrap(); - let reg = Regex::new(r"^(?:([a-zA-Z-_]*)\.)?mc\.tmoron\.fr").unwrap(); + let reg = Regex::new(r"^(?:([0-9a-zA-Z\-_]*)\.)?mc\.tmoron\.fr").unwrap(); let mut found: Option = None; if let Some(capture) = reg.captures(&self.handshake.as_ref().unwrap().server_address) { if let Some(captured_str) = capture.get(1) { diff --git a/src/minecraft/manager_loop.rs b/src/minecraft/manager_loop.rs index bde588b..0e70139 100644 --- a/src/minecraft/manager_loop.rs +++ b/src/minecraft/manager_loop.rs @@ -22,6 +22,7 @@ async fn server_init(pool: &DbPool, _docker: &Docker) -> Result<(), String> { .or(status.eq(ServerStatus::Starting)) )) .set(status.eq(ServerStatus::Stopped)).execute(conn); + println!("init done"); Ok(()) }