mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-22 23:09:09 +00:00
minor changes
This commit is contained in:
parent
57728ff105
commit
d6e15e61d6
3 changed files with 5 additions and 5 deletions
|
@ -99,7 +99,7 @@ Options:
|
||||||
--dns-addr <IP> DNS resolver address [default: 8.8.8.8]
|
--dns-addr <IP> DNS resolver address [default: 8.8.8.8]
|
||||||
-6, --ipv6-enabled IPv6 enabled
|
-6, --ipv6-enabled IPv6 enabled
|
||||||
-s, --setup <method> Routing and system setup [possible values: auto]
|
-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]
|
-v, --verbosity <level> Verbosity level [default: info] [possible values: off, error, warn, info, debug, trace]
|
||||||
-h, --help Print help
|
-h, --help Print help
|
||||||
-V, --version Print version
|
-V, --version Print version
|
||||||
|
|
|
@ -42,8 +42,8 @@ struct Args {
|
||||||
setup: Option<ArgSetup>,
|
setup: Option<ArgSetup>,
|
||||||
|
|
||||||
/// Public proxy IP used in routing setup which should bypassing the tunnel
|
/// Public proxy IP used in routing setup which should bypassing the tunnel
|
||||||
#[arg(long, value_name = "IP")]
|
#[arg(short, long, value_name = "IP")]
|
||||||
bypass_ip: Option<IpAddr>,
|
bypass: Option<IpAddr>,
|
||||||
|
|
||||||
/// Verbosity level
|
/// Verbosity level
|
||||||
#[arg(short, long, value_name = "level", value_enum, default_value = "info")]
|
#[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,
|
Some(addr) => addr,
|
||||||
None => args.proxy.addr.ip(),
|
None => args.proxy.addr.ip(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -1173,7 +1173,7 @@ impl<'a> TunToProxy<'a> {
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!("Failed to send exit signal: \"{}\"", err);
|
log::error!("Failed to send exit signal: \"{}\"", err);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue