summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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");