mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-09-06 15:21:45 +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::collections::HashMap;
|
||||||
use std::net::IpAddr;
|
use std::net::IpAddr;
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
use std::path::PathBuf;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::LazyLock;
|
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 …")]
|
#[command(author, version, long_about="A web service that tells you your ip-address and more …")]
|
||||||
struct CliArgs {
|
struct CliArgs {
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
config: Option<String>,
|
config: Option<PathBuf>,
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
listen_on: Option<SocketAddr>,
|
listen_on: Option<SocketAddr>,
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
@@ -156,7 +157,7 @@ struct CliArgs {
|
|||||||
#[arg(short,long)]
|
#[arg(short,long)]
|
||||||
extra_config: Option<String>,
|
extra_config: Option<String>,
|
||||||
#[arg(short,long)]
|
#[arg(short,long)]
|
||||||
static_location: Option<String>,
|
static_location: Option<PathBuf>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn match_domain_hidden_list(domain: &str, hidden_list: &Vec<String>) -> bool {
|
fn match_domain_hidden_list(domain: &str, hidden_list: &Vec<String>) -> bool {
|
||||||
|
Reference in New Issue
Block a user