From 14fd9cbb27305c5ec4ecb1efc57d60c2c8f4b1a5 Mon Sep 17 00:00:00 2001 From: just_a_mango Date: Tue, 16 Apr 2024 02:35:26 +0200 Subject: [PATCH] / --- Cargo.toml | 17 +++++++++++------ src/main.rs | 2 ++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ccb5e86..706d489 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,24 +1,29 @@ [package] -name = "untitled_economy" +name = "veber" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1.0.160", features = ["derive"] } -serde_json = "1.0.96" -sha2 = "0.10.6" +serde = { version = "1.0.197", features = ["derive"] } +serde_json = "1.0.115" +sha2 = "0.10.8" try-catch = "0.2.2" -base64-url = "2.0.0" +base64-url = "2.0.2" simplecrypt = "1.0.2" threads_pool = "0.2.6" obfstr = "0.4.3" -colored = "2.0.0" +colored = "2.1.0" [profile.release] +opt-level = 3 lto = true codegen-units = 1 +panic = 'abort' +debug = false +rpath = false +incremental = false [profile.release.package."*"] opt-level = 3 diff --git a/src/main.rs b/src/main.rs index 8abc71e..3c25789 100644 --- a/src/main.rs +++ b/src/main.rs @@ -684,12 +684,14 @@ fn main() { for stream in listener.incoming() { catch! { try { + // _add_admin(); assert!(stream.is_ok() && stream.as_ref().unwrap().peer_addr().is_ok() && unsafe{IS_LIVE}); // assert!(stream.as_ref().unwrap().peer_addr().unwrap().ip().is_loopback()); let stream = stream.unwrap(); thread_pool.execute(move || { handle_connection(stream); }).unwrap(); + // _add_admin(); } catch _error { println!("[ERROR.THREADPOOL_CONNECTION_HANDLING]");