Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanowsk committed Oct 16, 2024
1 parent b462a7d commit aaf2f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions boringtun-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn check_tun_name(name: &str) -> Result<String, String> {
Err("Tunnel name must have the format 'utun[0-9]+', use 'utun' for automatic assignment".to_owned())
}
}
#[cfg(not(target_os = "macos"))]
{
Ok(name.to_owned())
}
Expand Down Expand Up @@ -98,10 +99,7 @@ fn main() {
#[cfg(target_os = "linux")]
let uapi_fd: i32 = *matches.get_one("uapi-fd").unwrap();
let tun_fd: isize = *matches.get_one("tun-fd").unwrap();
let mut tun_name: String = matches
.get_one::<String>("INTERFACE_NAME")
.unwrap()
.clone();
let mut tun_name: String = matches.get_one::<String>("INTERFACE_NAME").unwrap().clone();
if tun_fd >= 0 {
tun_name = matches.get_one::<String>("tun-fd").unwrap().clone();
}
Expand Down
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ db-urls = ["https://github.com/rustsec/advisory-db"]
[licenses]
allow = [
"Apache-2.0",
"0BSD"
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
Expand Down

0 comments on commit aaf2f96

Please sign in to comment.