From aaf2f96c4e4b689c5ac70ea373a0f83a97c618da Mon Sep 17 00:00:00 2001 From: Jakub Janowski Date: Wed, 16 Oct 2024 22:28:56 +0000 Subject: [PATCH] . --- boringtun-cli/src/main.rs | 6 ++---- deny.toml | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/boringtun-cli/src/main.rs b/boringtun-cli/src/main.rs index 147aa88b..ecf70836 100644 --- a/boringtun-cli/src/main.rs +++ b/boringtun-cli/src/main.rs @@ -21,6 +21,7 @@ fn check_tun_name(name: &str) -> Result { 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()) } @@ -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::("INTERFACE_NAME") - .unwrap() - .clone(); + let mut tun_name: String = matches.get_one::("INTERFACE_NAME").unwrap().clone(); if tun_fd >= 0 { tun_name = matches.get_one::("tun-fd").unwrap().clone(); } diff --git a/deny.toml b/deny.toml index 7a4076d1..b9032dc5 100644 --- a/deny.toml +++ b/deny.toml @@ -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",