mio::event::Source

This commit is contained in:
ssrlive 2023-09-19 12:55:02 +08:00
parent 8aeaf238f2
commit 3e7a4dc8b2
4 changed files with 32 additions and 2 deletions

View file

@ -108,6 +108,7 @@ pub struct Options {
dns_over_tcp: bool,
dns_addr: Option<std::net::IpAddr>,
ipv6_enabled: bool,
bypass_ip: Option<std::net::IpAddr>,
}
impl Options {
@ -141,6 +142,11 @@ impl Options {
self.mtu = Some(mtu);
self
}
pub fn with_bypass_ip(mut self, ip: Option<std::net::IpAddr>) -> Self {
self.bypass_ip = ip;
self
}
}
pub fn tun_to_proxy<'a>(