Skip to content

Commit

Permalink
rusk: fix geoip endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Oct 14, 2024
1 parent e0f0962 commit e78b349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rusk/src/lib/http/chain/geo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ 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 {
Expand Down

0 comments on commit e78b349

Please sign in to comment.