mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-01 20:42:10 +00:00
Removed the function of displaying the current connection IP
https://github.com/2dust/v2rayN/discussions/7268
This commit is contained in:
parent
3a4a96f87a
commit
d3b95d781a
1 changed files with 6 additions and 6 deletions
|
@ -248,12 +248,12 @@ public class UpdateService
|
|||
var downloadHandle = new DownloadService();
|
||||
var time = await downloadHandle.RunAvailabilityCheck(null);
|
||||
var ip = Global.None;
|
||||
if (time > 0)
|
||||
{
|
||||
var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl);
|
||||
var ipInfo = JsonUtils.Deserialize<IPAPIInfo>(result);
|
||||
ip = $"({ipInfo?.country_code}) {ipInfo?.ip}";
|
||||
}
|
||||
//if (time > 0)
|
||||
//{
|
||||
// var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl);
|
||||
// var ipInfo = JsonUtils.Deserialize<IPAPIInfo>(result);
|
||||
// ip = $"({ipInfo?.country_code}) {ipInfo?.ip}";
|
||||
//}
|
||||
|
||||
return string.Format(ResUI.TestMeOutput, time, ip);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue