init
This commit is contained in:
commit
da40e48b19
20 changed files with 4150 additions and 0 deletions
16
src/main.rs
Normal file
16
src/main.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use anyhow::Result;
|
||||
use warthunder_confidential_document_leak_counter::{run, Config};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let config = Config {
|
||||
port: std::env::var("WARTHUNDER_LEAK_SERVE_PORT")
|
||||
.ok()
|
||||
.and_then(|p| p.parse().ok())
|
||||
.unwrap_or(8000u16),
|
||||
};
|
||||
|
||||
run(config).await?.server.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue