mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-04 15:02:16 +02:00
12 lines
412 B
Rust
12 lines
412 B
Rust
|
|
fn default_geoip_url() -> String { String::from("https://raw.githubusercontent.com/sapics/ip-location-db/refs/heads/main/asn-country/asn-country-ipv4.csv") }
|
|
|
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, Default, PartialEq)]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct GeoIpConfigDto {
|
|
#[serde(default)]
|
|
pub enabled: bool,
|
|
#[serde(default = "default_geoip_url")]
|
|
pub url: String,
|
|
}
|