mirror of https://github.com/ctz/rustls
examples: unbuffered-server: skip argv[0]
This commit is contained in:
parent
567d89227d
commit
20ac87f64f
|
@ -20,6 +20,7 @@ use rustls_pemfile::Item;
|
|||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let mut args = env::args();
|
||||
args.next();
|
||||
let cert_file = args
|
||||
.next()
|
||||
.expect("missing certificate file argument");
|
||||
|
|
Loading…
Reference in New Issue