v0.28.0
This commit is contained in:
1 parent
c24bc4279b
commit
3b3f0db377
84 files changed
+2686
-392
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user