Skip to content

Commit 681187c

Browse files
authored
Update socket2 0.3.19 -> 0.5.1 (#140)
Signed-off-by: Konrad Gräfe <[email protected]>
1 parent e392907 commit 681187c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Cargo.lock

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ crossbeam-channel = "0.5"
3030
crossbeam-utils = "0.8"
3131
log = "0.4"
3232
strum = { version = "0.24", features = ["derive"] }
33-
socket2 = { version = "0.3.19", features = ["reuseport"], optional = true}
33+
socket2 = { version = "0.5.1", features = ["all"], optional = true}
3434
tungstenite = { version = "0.16", optional = true }
3535
url = { version = "2.2", optional = true }
3636
integer-encoding = "3.0.2"

src/adapters/udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl Local for LocalResource {
100100
SocketAddr::V4(addr) if addr.ip().is_multicast() => {
101101
let listening_addr = SocketAddrV4::new(Ipv4Addr::UNSPECIFIED, addr.port());
102102

103-
let socket = Socket::new(Domain::ipv4(), Type::dgram(), Some(Protocol::udp()))?;
103+
let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::UDP))?;
104104
socket.set_reuse_address(true)?;
105105
#[cfg(unix)]
106106
socket.set_reuse_port(true)?;

0 commit comments

Comments
 (0)