Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
horacehoff committed Apr 16, 2024
1 parent dddc034 commit 14fd9cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]");
Expand Down

0 comments on commit 14fd9cb

Please sign in to comment.