mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-21 16:41:01 +00:00
mio::event::Source
This commit is contained in:
parent
8aeaf238f2
commit
3e7a4dc8b2
4 changed files with 32 additions and 2 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue