mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
add aquatic crate with master executable, refactor cli_helpers
This commit is contained in:
parent
c69b09ab9c
commit
9efc1fc66a
17 changed files with 243 additions and 62 deletions
|
|
@ -8,7 +8,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
fn main(){
|
||||
run_app_with_cli_and_config::<Config>(
|
||||
"aquatic: BitTorrent (HTTP/TLS) tracker",
|
||||
aquatic_http::run
|
||||
aquatic_http::APP_NAME,
|
||||
aquatic_http::run,
|
||||
None
|
||||
)
|
||||
}
|
||||
|
|
@ -18,6 +18,9 @@ use config::Config;
|
|||
use network::utils::create_tls_acceptor;
|
||||
|
||||
|
||||
pub const APP_NAME: &str = "aquatic_http: HTTP/TLS BitTorrent tracker";
|
||||
|
||||
|
||||
pub fn run(config: Config) -> anyhow::Result<()> {
|
||||
let opt_tls_acceptor = create_tls_acceptor(&config.network.tls)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue