Use more PathBuf wehre appropriate and possible

This commit is contained in:
Slatian
2025-04-11 21:55:03 +02:00
parent f01f6a886d
commit 59bad8def4

View File

@ -40,6 +40,7 @@ use tokio::task;
use std::collections::HashMap;
use std::net::IpAddr;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::LazyLock;
@ -148,7 +149,7 @@ struct DerivedConfiguration {
#[command(author, version, long_about="A web service that tells you your ip-address and more …")]
struct CliArgs {
#[arg(short, long)]
config: Option<String>,
config: Option<PathBuf>,
#[arg(short, long)]
listen_on: Option<SocketAddr>,
#[arg(short, long)]
@ -156,7 +157,7 @@ struct CliArgs {
#[arg(short,long)]
extra_config: Option<String>,
#[arg(short,long)]
static_location: Option<String>,
static_location: Option<PathBuf>,
}
fn match_domain_hidden_list(domain: &str, hidden_list: &Vec<String>) -> bool {