use SyncDevice

This commit is contained in:
lbl
2025-02-24 10:24:48 +08:00
parent 0238d1ab7e
commit 1d5257363c
2 changed files with 2 additions and 2 deletions
Generated
+1 -1
View File
@@ -2083,7 +2083,7 @@ dependencies = [
[[package]]
name = "tun-rs"
version = "2.0.3"
version = "2.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57cff936a4d3a03480e462b2b384dabd5baf64794f10f172965b18e0223d5fc7"
dependencies = [
+1 -1
View File
@@ -390,7 +390,7 @@ impl<Call: VntCallback, Device: DeviceWrite> ServerPacketHandler<Call, Device> {
"device_fd == 0".into(),
));
} else {
match tun_rs::platform::Device::from_fd(device_fd as _) {
match tun_rs::SyncDevice::from_fd(device_fd as _) {
Ok(device) => {
if let Err(e) = self.tun_device_helper.start(
Arc::new(device),