diff --git a/src/main.rs b/src/main.rs index 50c1a8d..661e0cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ use std::{ #[derive(Parser)] pub struct Args { #[arg(long)] - port: u16, + sock: String, #[arg(long)] pem_dir: PathBuf, } @@ -139,7 +139,7 @@ async fn main() { ) .await .unwrap(); - bind_rustls("127.0.0.1:3000".parse().unwrap(), config) + bind_rustls(args.addr.parse().unwrap(), config) .serve(app.into_make_service()) .await .unwrap();