Update tun_handler.rs

This commit is contained in:
lbl8603
2023-02-07 17:43:38 +08:00
committed by GitHub
parent b3abb175c1
commit 80109fd8aa
+1
View File
@@ -151,6 +151,7 @@ pub async fn handler_start<F>(
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
use std::os::unix::io::AsRawFd; use std::os::unix::io::AsRawFd;
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
use std::os::fd::AsRawFd;
let raw_fd = tun_reader.0.as_raw_fd(); let raw_fd = tun_reader.0.as_raw_fd();
tokio::spawn(async move { tokio::spawn(async move {
let _ = status_watch.changed().await; let _ = status_watch.changed().await;