Skip to content

Commit

Permalink
do not remove ip from allowed list
Browse files Browse the repository at this point in the history
  • Loading branch information
Pycckue-Bnepeg committed Sep 2, 2021
1 parent c3f43a8 commit d32511f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 5 additions & 8 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ pub extern "stdcall" fn DllMain(instance: HMODULE, reason: u32, _reserved: u32)
DisableThreadLibraryCalls(instance);
}

CombinedLogger::init(vec![
TermLogger::new(LevelFilter::Trace, Config::default(), TerminalMode::Mixed),
WriteLogger::new(
LevelFilter::Trace,
Config::default(),
File::create("cef_client.log").unwrap(),
),
])
CombinedLogger::init(vec![WriteLogger::new(
LevelFilter::Trace,
Config::default(),
File::create("cef_client.log").unwrap(),
)])
.unwrap();

render::preinitialize();
Expand Down
1 change: 0 additions & 1 deletion server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ impl Server {

/// выпинываем игрока из списка клиентов
fn handle_timeout(&mut self, addr: SocketAddr) {
self.allowed.remove(&addr.ip());
self.clients.remove(&addr);
}

Expand Down

0 comments on commit d32511f

Please sign in to comment.