mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +00:00
re-formatting with max_width = 120
This commit is contained in:
parent
4d9b10fd1c
commit
ff9c258fbd
11 changed files with 64 additions and 191 deletions
15
src/main.rs
15
src/main.rs
|
@ -26,13 +26,7 @@ struct Args {
|
|||
proxy: Proxy,
|
||||
|
||||
/// DNS handling
|
||||
#[arg(
|
||||
short,
|
||||
long,
|
||||
value_name = "method",
|
||||
value_enum,
|
||||
default_value = "virtual"
|
||||
)]
|
||||
#[arg(short, long, value_name = "method", value_enum, default_value = "virtual")]
|
||||
dns: ArgDns,
|
||||
|
||||
/// Routing and system setup
|
||||
|
@ -102,12 +96,7 @@ fn main() -> ExitCode {
|
|||
Some(addr) => addr,
|
||||
None => args.proxy.addr.ip(),
|
||||
};
|
||||
setup = Setup::new(
|
||||
&args.tun,
|
||||
&bypass_tun_ip,
|
||||
get_default_cidrs(),
|
||||
args.bypass_ip.is_some(),
|
||||
);
|
||||
setup = Setup::new(&args.tun, &bypass_tun_ip, get_default_cidrs(), args.bypass_ip.is_some());
|
||||
|
||||
setup.configure()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue