This commit is contained in:
Mateusz Gruszczyński committed 2026-10-08 09:42:10 +02:00
1 parent c24bc4279b
commit 3b3f0db377
84 files changed
+2686 -392

No files matched your search

+2 -2
View File
@@ -197,7 +197,7 @@ async fn forward(
{
country = cloudflare_country
.clone()
.or_else(|| state.geoip.country(context.client_ip));
.or_else(|| state.geoip.load().country(context.client_ip));
country_resolved = true;
}
if capture_country {
@@ -277,7 +277,7 @@ async fn forward(
{
country = cloudflare_country
.clone()
.or_else(|| state.geoip.country(context.client_ip));
.or_else(|| state.geoip.load().country(context.client_ip));
if capture_country {
if let Some(exchange) = request.extensions().get::<Arc<Exchange>>() {
*exchange.country.lock().unwrap_or_else(|e| e.into_inner()) = country.clone();