diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-16 23:16:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-16 23:16:48 +0200 |
commit | 15fbaa99f1700f15277187ce56f815a55fe5b7cc (patch) | |
tree | e27938387042cc15175b3519ab357dd222ac022e /server/discover | |
parent | 3f98582f903e579d9f47aba48f3976345eabe123 (diff) | |
download | hurrycurry-15fbaa99f1700f15277187ce56f815a55fe5b7cc.tar hurrycurry-15fbaa99f1700f15277187ce56f815a55fe5b7cc.tar.bz2 hurrycurry-15fbaa99f1700f15277187ce56f815a55fe5b7cc.tar.zst |
upgrade deps
Diffstat (limited to 'server/discover')
-rw-r--r-- | server/discover/Cargo.toml | 14 | ||||
-rw-r--r-- | server/discover/src/main.rs | 5 |
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 |