1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

change to not ping

This commit is contained in:
mat 2022-04-22 00:10:24 +00:00
parent 03d14e13f2
commit c31c6fa7d0
2 changed files with 8 additions and 7 deletions

View file

@ -87,7 +87,7 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> {
} }
}, },
Err(e) => { Err(e) => {
println!("Error: {:?}", e); panic!("Error: {:?}", e);
} }
} }
} }

View file

@ -1,14 +1,15 @@
use azalea_client::connect::join_server;
use azalea_client::ping::ping_server;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
println!("Hello, world!"); println!("Hello, world!");
let address = "95.111.249.143:10000"; let address = "95.111.249.143:10000";
// let address = "localhost:63482"; // let address = "localhost:63482";
let response = ping_server(&address.try_into().unwrap()).await.unwrap(); // let response = azalea_client::ping::ping_server(&address.try_into().unwrap())
// let _response = join_server(&address.try_into().unwrap()).await.unwrap(); // .await
println!("{}", response.description.to_ansi(None)); // .unwrap();
// println!("{}", response.description.to_ansi(None));
let _response = azalea_client::connect::join_server(&address.try_into().unwrap())
.await
.unwrap();
println!("connected"); println!("connected");
} }