From cc70d80932269ca3d044224481ab46082e0a8449 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 30 Apr 2022 17:55:18 -0500 Subject: [PATCH] gitignore flamegraph stuff --- .gitignore | 3 +++ Cargo.toml | 3 +++ azalea-client/src/connect.rs | 3 +-- bot/src/main.rs | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4990fff7..ad9bfc78 100755 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /target /doc +flamegraph.svg +perf.data +perf.data.old diff --git a/Cargo.toml b/Cargo.toml index 7f958207..ae27892e 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,6 @@ members = [ "azalea-nbt", "azalea-brigadier", ] + +[profile.release] +debug = true diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index b0d7dffc..7c1880fa 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -73,11 +73,10 @@ impl Client { match packet_result { Ok(packet) => match packet { LoginPacket::ClientboundHelloPacket(p) => { - println!("Got encryption request {:?} {:?}", p.nonce, p.public_key); + println!("Got encryption request"); let e = azalea_auth::encryption::encrypt(&p.public_key, &p.nonce).unwrap(); // TODO: authenticate with the server here (authenticateServer) - println!("Sending encryption response {:?}", e); conn.write( ServerboundKeyPacket { diff --git a/bot/src/main.rs b/bot/src/main.rs index 89c23a6f..0b67cc44 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -5,7 +5,7 @@ async fn main() { println!("Hello, world!"); // let address = "95.111.249.143:10000"; - let address = "localhost:58422"; + let address = "172.23.192.1:51015"; // let response = azalea_client::ping::ping_server(&address.try_into().unwrap()) // .await // .unwrap();