From 4ea9bef6068ae3867303738dba53aaf4095d59f3 Mon Sep 17 00:00:00 2001 From: Herr Seppia Date: Mon, 14 Oct 2024 17:28:04 +0200 Subject: [PATCH] rusk: fix geoip endpoint --- rusk/src/lib/http/chain/geo.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rusk/src/lib/http/chain/geo.rs b/rusk/src/lib/http/chain/geo.rs index b265e2df37..659cc2f399 100644 --- a/rusk/src/lib/http/chain/geo.rs +++ b/rusk/src/lib/http/chain/geo.rs @@ -40,7 +40,9 @@ impl RuskNode { let ip = n.ip(); let url = match std::env::var("IP_API_KEY") { - Ok(key) => format!("https://ip-api.com/json/{ip}?key={key}"), + Ok(key) => { + format!("https://pro.ip-api.com/json/{ip}?key={key}") + } Err(_) => format!("http://ip-api.com/json/{ip}"), }; if let Ok(v) = client.get(url).send().await {