Remove print, use port on UDP

This commit is contained in:
Leon Grünewald 2024-09-17 02:40:00 +02:00
parent 6ff29972c7
commit 838f9188b3
3 changed files with 3 additions and 4 deletions

2
Cargo.lock generated
View file

@ -478,7 +478,7 @@ checksum = "defc4c55412d89136f966bbb339008b474350e5e6e78d2714439c386b3137a03"
[[package]]
name = "mumble-rs"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"anyhow",
"bytes",

View file

@ -1,6 +1,6 @@
[package]
name = "mumble-rs"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
license = "MIT"
description = "A small simple crate to communicate with a mumble server"

View file

@ -150,8 +150,7 @@ impl MumbleClient {
pub async fn create_udp_connection(&mut self) -> anyhow::Result<UdpSocket> {
let sock = UdpSocket::bind((Ipv4Addr::UNSPECIFIED, 0)).await?;
println!("UDP Connect");
sock.connect(&self.host).await?;
sock.connect((self.host.clone(), self.port)).await?;
Ok(sock)
}