Change IPAPI

https://github.com/2dust/v2rayN/issues/6172
This commit is contained in:
2dust
2024-11-27 17:03:16 +08:00
parent 59b34688ea
commit 298fdb1191
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -249,9 +249,9 @@ namespace ServiceLib.Services
var ip = Global.None;
if (time > 0)
{
var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, "ipapi");
var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl);
var ipInfo = JsonUtils.Deserialize<IPAPIInfo>(result);
ip = $"({ipInfo?.country}) {ipInfo?.ip}";
ip = $"({ipInfo?.country_code}) {ipInfo?.ip}";
}
updateFunc?.Invoke(false, string.Format(ResUI.TestMeOutput, time, ip));