add unsafe block
This commit is contained in:
@@ -390,7 +390,7 @@ impl<Call: VntCallback, Device: DeviceWrite> ServerPacketHandler<Call, Device> {
|
||||
"device_fd == 0".into(),
|
||||
));
|
||||
} else {
|
||||
let device = tun_rs::SyncDevice::from_fd(device_fd as _);
|
||||
let device = unsafe { tun_rs::SyncDevice::from_fd(device_fd as _) };
|
||||
if let Err(e) = self.tun_device_helper.start(
|
||||
Arc::new(device),
|
||||
self.config_info.allow_wire_guard,
|
||||
|
||||
Reference in New Issue
Block a user