From f05577c927637b1bc62cf1bc36764110ba377339 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:37:51 +0800 Subject: [PATCH] Update linux.rs --- switch/src/tun_device/linux.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/switch/src/tun_device/linux.rs b/switch/src/tun_device/linux.rs index 9a849ec..1811bf8 100644 --- a/switch/src/tun_device/linux.rs +++ b/switch/src/tun_device/linux.rs @@ -1,13 +1,4 @@ -use std::io; -use std::io::{Error, Read, Write}; use std::net::Ipv4Addr; -use std::os::unix::process::CommandExt; -use std::process::Command; - -use bytes::BufMut; -use tun::platform::posix::{Reader, Writer}; -use tun::Device; - use crate::tun_device::{TunReader, TunWriter}; pub fn create_tun(