Pass client certs

This commit is contained in:
Pascal Engélibert 2026-02-27 13:48:57 +01:00
commit c6a30519e2
2 changed files with 47 additions and 4 deletions

View file

@ -61,6 +61,9 @@ struct OptClient {
/// Only play this record
#[argp(option)]
record: Option<u64>,
/// Path to PEM certificates (if not provided, use system's certificates)
#[argp(option, short = 'c')]
certs: Option<String>,
/// Print debug info
#[argp(switch, short = 'd')]
debug: bool,
@ -142,6 +145,7 @@ async fn main() {
subopt.tls,
(subopt.connect_addr, subopt.connect_port),
subopt.repeat,
subopt.certs.as_deref(),
subopt.debug,
)
.await;