From 0d6290ed602ac99e2757813dd5defca751436efd Mon Sep 17 00:00:00 2001 From: "(on company time)" <_@_> Date: Thu, 26 Jan 2023 15:52:44 -0600 Subject: [PATCH] :bug: bug: fix a config bug In ptth_multi_call_server, the file server root was "" instead of ".". This happened in 134035f due to a bad merge. I'm not sure how to add a test for it. --- crates/ptth_server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ptth_server/src/lib.rs b/crates/ptth_server/src/lib.rs index 5ca3fd1..94d4e4a 100644 --- a/crates/ptth_server/src/lib.rs +++ b/crates/ptth_server/src/lib.rs @@ -558,7 +558,7 @@ pub mod executable { name: opt.name.or (config_file.name).ok_or (anyhow::anyhow! ("`name` must be provided in command line or config file"))?, api_key: config_file.api_key, relay_url: opt.relay_url.or (config_file.relay_url).ok_or (anyhow::anyhow! ("`--relay-url` must be provided in command line or `relay_url` in config file"))?, - file_server_root: opt.file_server_root.or (config_file.file_server_root).unwrap_or_else (PathBuf::new), + file_server_root: opt.file_server_root.or (config_file.file_server_root).unwrap_or_else (|| PathBuf::from (".")), file_server_roots, throttle_upload: opt.throttle_upload, allow_any_client: true,