mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-23 01:20:52 +00:00
Enable automated setup for private IP addresses
This commit is contained in:
parent
e78a3f9a73
commit
3c79fa6071
2 changed files with 86 additions and 115 deletions
|
@ -69,7 +69,12 @@ fn main() -> ExitCode {
|
|||
Some(addr) => addr,
|
||||
None => args.proxy.addr.ip(),
|
||||
};
|
||||
setup = Setup::new(&args.tun, &bypass_tun_ip, get_default_cidrs());
|
||||
setup = Setup::new(
|
||||
&args.tun,
|
||||
&bypass_tun_ip,
|
||||
get_default_cidrs(),
|
||||
args.setup_ip.is_some(),
|
||||
);
|
||||
if let Err(e) = setup.setup() {
|
||||
log::error!("{e}");
|
||||
return ExitCode::FAILURE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue