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,