fix: compiling with socket2::Type::RAW not found on macOS #1168 (#1169)

This commit is contained in:
Tunglies
2025-07-30 00:33:38 +08:00
committed by GitHub
parent 3d610c0f0f
commit b1b2421561
2 changed files with 4 additions and 4 deletions

6
Cargo.lock generated
View File

@@ -1876,7 +1876,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.0",
"windows-sys 0.59.0",
"windows-sys 0.60.2",
]
[[package]]
@@ -7557,9 +7557,9 @@ dependencies = [
[[package]]
name = "socket2"
version = "0.5.7"
version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
dependencies = [
"libc",
"windows-sys 0.52.0",

View File

@@ -115,7 +115,7 @@ byteorder = "1.5.0"
# for proxy
cidr = { version = "0.2.2", features = ["serde"] }
socket2 = "0.5.5"
socket2 = { version = "0.5.10", features = ["all"] }
# for hole punching
stun_codec = "0.3.4"