Full sock

This commit is contained in:
Joshua Barretto 2025-04-21 00:25:06 +01:00
parent e85e181681
commit 1c1f28007c

View file

@ -18,7 +18,7 @@ use std::{
#[derive(Parser)] #[derive(Parser)]
pub struct Args { pub struct Args {
#[arg(long)] #[arg(long)]
port: u16, sock: String,
#[arg(long)] #[arg(long)]
pem_dir: PathBuf, pem_dir: PathBuf,
} }
@ -139,7 +139,7 @@ async fn main() {
) )
.await .await
.unwrap(); .unwrap();
bind_rustls("127.0.0.1:3000".parse().unwrap(), config) bind_rustls(args.sock.parse().unwrap(), config)
.serve(app.into_make_service()) .serve(app.into_make_service())
.await .await
.unwrap(); .unwrap();