mdns fix: use heuristic to find suitable interface and use IP of that interface to anounce service

This commit is contained in:
2025-11-13 20:35:29 +01:00
parent 2baf32f78a
commit 651e3db988
4 changed files with 99 additions and 3 deletions
Generated
+12 -1
View File
@@ -1948,6 +1948,16 @@ dependencies = [
"icu_properties",
]
[[package]]
name = "if-addrs"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "624c5448ba529e74f594c65b7024f31b2de7b64a9b228b8df26796bbb6e32c36"
dependencies = [
"libc",
"windows-sys 0.52.0",
]
[[package]]
name = "if-addrs"
version = "0.14.0"
@@ -2206,6 +2216,7 @@ dependencies = [
"bytes",
"eyre",
"gethostname",
"if-addrs 0.11.1",
"lanspread-compat",
"lanspread-db",
"lanspread-mdns",
@@ -2425,7 +2436,7 @@ checksum = "3426fcc57a3b93e136cbc83861d30ccbc6e6eb8788bd09b6eb92565d29841029"
dependencies = [
"fastrand",
"flume",
"if-addrs",
"if-addrs 0.14.0",
"log",
"mio",
"socket-pktinfo",