Full sock
This commit is contained in:
parent
e85e181681
commit
1c1f28007c
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue