diff --git a/Cargo.toml b/Cargo.toml index 58ca7ac..8b71fb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tun2proxy" -version = "0.7.2" +version = "0.7.3" edition = "2021" license = "MIT" repository = "https://github.com/tun2proxy/tun2proxy" diff --git a/src/general_api.rs b/src/general_api.rs index 665026e..c877fd4 100644 --- a/src/general_api.rs +++ b/src/general_api.rs @@ -86,6 +86,7 @@ pub unsafe extern "C" fn tun2proxy_with_fd_run( #[no_mangle] pub unsafe extern "C" fn tun2proxy_run_with_cli_args(cli_args: *const c_char, tun_mtu: c_ushort, packet_information: bool) -> c_int { let Ok(cli_args) = std::ffi::CStr::from_ptr(cli_args).to_str() else { + log::error!("Failed to convert CLI arguments to string"); return -5; }; let Some(args) = shlex::split(cli_args) else {