summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-06-24 12:56:38 -0700
committeriximeow <me@iximeow.net>2023-06-24 12:56:38 -0700
commit9ebca3023f8205359a85dbbe03bfab6b8c996d4e (patch)
tree38b5caa716779c33ddc8ae5c91383e9b5ede0b69
parentda4cc8574a53ce65f24f3b41cf98d544e4c1fbc9 (diff)
first arg is the binary path
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index f24b73b..9c16762 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -442,6 +442,7 @@ async fn main() {
tracing_subscriber::fmt::init();
let mut args = std::env::args();
+ args.next().expect("first arg exists");
let config_path = args.next().unwrap_or("./webserver_config.json".to_string());
let web_config: WebserverConfig = serde_json::from_reader(std::fs::File::open(config_path).expect("file exists and is accessible")).expect("valid json for WebserverConfig");
let mut psks = PSKS.write().expect("can write lock");