refine code

This commit is contained in:
ssrlive 2023-10-01 14:17:35 +08:00
parent da24bffa70
commit 2a4a9c7c2a
4 changed files with 37 additions and 52 deletions

View file

@ -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
}
}