mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-21 16:41:01 +00:00
refine code
This commit is contained in:
parent
da24bffa70
commit
2a4a9c7c2a
4 changed files with 37 additions and 52 deletions
|
@ -104,7 +104,7 @@ pub struct Options {
|
|||
dns_over_tcp: bool,
|
||||
dns_addr: Option<std::net::IpAddr>,
|
||||
ipv6_enabled: bool,
|
||||
bypass_ip: Option<std::net::IpAddr>,
|
||||
bypass: Option<std::net::IpAddr>,
|
||||
}
|
||||
|
||||
impl Options {
|
||||
|
@ -139,8 +139,8 @@ impl Options {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn with_bypass_ip(mut self, ip: Option<std::net::IpAddr>) -> Self {
|
||||
self.bypass_ip = ip;
|
||||
pub fn with_bypass(mut self, ip: Option<std::net::IpAddr>) -> Self {
|
||||
self.bypass = ip;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue