aboutsummaryrefslogtreecommitdiff
path: root/server/discover
diff options
context:
space:
mode:
Diffstat (limited to 'server/discover')
-rw-r--r--server/discover/Cargo.toml14
-rw-r--r--server/discover/src/main.rs5
2 files changed, 11 insertions, 8 deletions
diff --git a/server/discover/Cargo.toml b/server/discover/Cargo.toml
index 9bf0ec11..566b3fa9 100644
--- a/server/discover/Cargo.toml
+++ b/server/discover/Cargo.toml
@@ -4,17 +4,17 @@ version = "2.3.5"
edition = "2021"
[dependencies]
-mdns-sd = "0.13.9"
+mdns-sd = "0.15.1"
env_logger = "0.11.8"
-log = "0.4.27"
-anyhow = "1.0.98"
-hyper = { version = "1.6.0", default-features = false, features = [
+log = "0.4.28"
+anyhow = "1.0.99"
+hyper = { version = "1.7.0", default-features = false, features = [
"server",
"http1",
] }
-tokio = { version = "1.45.1", features = ["full"] }
+tokio = { version = "1.47.1", features = ["full"] }
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["full"] }
hurrycurry-protocol = { path = "../protocol" }
-serde_json = "1.0.140"
-clap = { version = "4.5.39", features = ["derive"] }
+serde_json = "1.0.145"
+clap = { version = "4.5.47", features = ["derive"] }
diff --git a/server/discover/src/main.rs b/server/discover/src/main.rs
index 0e4fb2a0..7247854d 100644
--- a/server/discover/src/main.rs
+++ b/server/discover/src/main.rs
@@ -73,7 +73,10 @@ async fn async_main() -> Result<!> {
.get_addresses()
.iter()
.map(|a| {
- format!("ws://{}", SocketAddr::new(*a, service_info.get_port()))
+ format!(
+ "ws://{}",
+ SocketAddr::new(a.to_ip_addr(), service_info.get_port()) //? Is is ok to drop ip6 scope?
+ )
})
.collect(),
players_online: service_info