Implement sending commands via Unix sockets

This commit is contained in:
dav 2023-07-01 09:44:13 -07:00 committed by David Zhong
parent c8df4b860d
commit f869cbdb53
14 changed files with 555 additions and 177 deletions

View file

@ -3,7 +3,8 @@ use std::io::Error;
use super::TunInterface;
#[derive(Default)]
#[derive(Debug, Clone, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct TunOptions {
/// (Windows + Linux) Name the tun interface.
pub(crate) name: Option<String>,