idk rename main

This commit is contained in:
sqlerrorthing
2025-10-29 06:08:28 +08:00
parent 3b66cc8136
commit 3e009479c8
3 changed files with 2 additions and 2 deletions

View File

@@ -4,6 +4,5 @@ use std::ffi::c_char;
#[link(name = "nfqws", kind = "static")]
unsafe extern "C" {
#[link_name = "main"]
pub fn nfqws_main(argc: libc::c_int, argv: *const *const c_char) -> libc::c_int;
}

View File

@@ -84,7 +84,7 @@ async fn main() {
Some(Commands::ModuleVer) => module_version(),
Some(Commands::BinVer) => todo!(), //bin_version(),
//None => println!("zaprett installed. Join us: t.me/zaprett_module"),
None => run_nfqws("-v".to_string()).await.unwrap(),
None => run_nfqws("--version".to_string()).await.unwrap(),
}
tokio::signal::ctrl_c().await.unwrap();
}