From 066c1613d3e97af23fa48c9d47d4e0b6005f11c4 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Sun, 8 Sep 2024 20:20:45 +0300 Subject: [PATCH] Changes to be committed: modified: src/client.rs --- src/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 7f2c6dd..740e6d0 100644 --- a/src/client.rs +++ b/src/client.rs @@ -27,7 +27,7 @@ fn configure_routes(endpoint_ip: &str, s_interface: Option<&str>) { let inter_name = if s_interface.is_some() { s_interface.unwrap() } else { &net_inter.name }; - info!("Main network interface: {:?}", &net_inter.name); + info!("Main network interface: {:?}", inter_name); let mut ip_output = Command::new("sudo") .arg("ip") @@ -63,6 +63,7 @@ fn configure_routes(endpoint_ip: &str, s_interface: Option<&str>) { pub async fn client_mode(client_config: ClientConfiguration, s_interface: Option<&str>) { info!("Starting client..."); + info!("s_interface: {:?}", s_interface); let sock = UdpSocket::bind("0.0.0.0:25565").await.unwrap(); sock.connect(&client_config.server.endpoint).await.unwrap();