minor changes

This commit is contained in:
ssrlive 2023-10-01 13:05:01 +08:00
parent 57728ff105
commit d6e15e61d6
3 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ Options:
--dns-addr <IP> DNS resolver address [default: 8.8.8.8]
-6, --ipv6-enabled IPv6 enabled
-s, --setup <method> Routing and system setup [possible values: auto]
--bypass-ip <IP> Public proxy IP used in routing setup which should bypassing the tunnel
-b, --bypass <IP> Public proxy IP used in routing setup which should bypassing the tunnel
-v, --verbosity <level> Verbosity level [default: info] [possible values: off, error, warn, info, debug, trace]
-h, --help Print help
-V, --version Print version

View file

@ -42,8 +42,8 @@ struct Args {
setup: Option<ArgSetup>,
/// Public proxy IP used in routing setup which should bypassing the tunnel
#[arg(long, value_name = "IP")]
bypass_ip: Option<IpAddr>,
#[arg(short, long, value_name = "IP")]
bypass: Option<IpAddr>,
/// Verbosity level
#[arg(short, long, value_name = "level", value_enum, default_value = "info")]
@ -116,7 +116,7 @@ fn main() -> ExitCode {
}
};
let bypass_tun_ip = match args.bypass_ip {
let bypass_tun_ip = match args.bypass {
Some(addr) => addr,
None => args.proxy.addr.ip(),
};

View file

@ -1173,7 +1173,7 @@ impl<'a> TunToProxy<'a> {
count += 1;
}
Err(err) => {
println!("Failed to send exit signal: \"{}\"", err);
log::error!("Failed to send exit signal: \"{}\"", err);
break;
}
}