mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-28 19:12:51 +00:00
Compare commits
2 commits
3a4a96f87a
...
8381fefb78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8381fefb78 | ||
|
|
d3b95d781a |
2 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>7.12.1</Version>
|
<Version>7.12.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue