add command works ,fix warnings, proxy repaired, docker start arguments defined
This commit is contained in:
@ -6,13 +6,12 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/07 17:23:09 by tomoron #+# #+# */
|
||||
/* Updated: 2026/05/31 23:23:05 by tomoron ### ########.fr */
|
||||
/* Updated: 2026/06/05 12:36:46 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
use tokio::net::TcpStream;
|
||||
use crate::minecraft::handshake::Handshake;
|
||||
use crate::minecraft::varint::varint_write;
|
||||
use std::fmt;
|
||||
|
||||
use crate::models::Servers;
|
||||
@ -29,7 +28,7 @@ pub struct Client {
|
||||
|
||||
pub server: Option<Result<Servers,diesel::result::Error>>,
|
||||
|
||||
pub dbPool: DbPool
|
||||
pub db_pool: DbPool
|
||||
}
|
||||
|
||||
use crate::DbPool;
|
||||
@ -54,7 +53,7 @@ impl Client {
|
||||
|
||||
server: None,
|
||||
|
||||
dbPool: pool
|
||||
db_pool: pool
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,7 +65,7 @@ impl Client {
|
||||
}
|
||||
|
||||
|
||||
let conn = &mut self.dbPool.get().unwrap();
|
||||
let conn = &mut self.db_pool.get().unwrap();
|
||||
|
||||
let reg = Regex::new(r"^(?:([a-zA-Z-_]*)\.)?mc\.tmoron\.fr$").unwrap();
|
||||
let mut found: Option<String> = None;
|
||||
|
||||
Reference in New Issue
Block a user