Removed the function of displaying the current connection IP

https://github.com/2dust/v2rayN/discussions/7268
This commit is contained in:
2dust 2025-05-11 10:38:48 +08:00
parent 3a4a96f87a
commit d3b95d781a

View file

@ -248,12 +248,12 @@ public class UpdateService
var downloadHandle = new DownloadService(); var downloadHandle = new DownloadService();
var time = await downloadHandle.RunAvailabilityCheck(null); var time = await downloadHandle.RunAvailabilityCheck(null);
var ip = Global.None; var ip = Global.None;
if (time > 0) //if (time > 0)
{ //{
var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl); // var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl);
var ipInfo = JsonUtils.Deserialize<IPAPIInfo>(result); // var ipInfo = JsonUtils.Deserialize<IPAPIInfo>(result);
ip = $"({ipInfo?.country_code}) {ipInfo?.ip}"; // ip = $"({ipInfo?.country_code}) {ipInfo?.ip}";
} //}
return string.Format(ResUI.TestMeOutput, time, ip); return string.Format(ResUI.TestMeOutput, time, ip);
} }