mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-17 06:23:29 +02:00
Use more PathBuf wehre appropriate and possible
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user