We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c40405b + 0a47323 commit c2e4e81Copy full SHA for c2e4e81
crates/mdns/Cargo.toml
@@ -11,6 +11,10 @@ repository = "https://github.com/webrtc-rs/mdns"
11
12
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13
14
+[features]
15
+default = [ "reuse_port" ]
16
+reuse_port = []
17
+
18
[dependencies]
19
util = { package = "webrtc-util", version = "0.1.18" }
20
lazy_static = "1.3.0"
crates/mdns/src/conn/mod.rs
@@ -56,6 +56,7 @@ impl DnsConn {
56
Some(socket2::Protocol::UDP),
57
)?;
58
59
+ #[cfg(feature = "reuse_port")]
60
#[cfg(target_family = "unix")]
61
socket.set_reuse_port(true)?;
62
0 commit comments