1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

update IP lookup api

This commit is contained in:
RaidMax
2022-01-31 08:16:12 -06:00
parent fc2bba42b3
commit bc57661cba
2 changed files with 5 additions and 14 deletions

View File

@ -111,7 +111,7 @@ namespace IW4MAdmin.Plugins.Welcome
try
{
var response =
await wc.GetStringAsync(new Uri($"http://extreme-ip-lookup.com/json/{ip}?key=demo"));
await wc.GetStringAsync(new Uri($"http://ip-api.com/json/{ip}"));
var responseObj = JObject.Parse(response);
response = responseObj["country"]?.ToString();