From d3b95d781ad6091cfac654c91a8cd8f4a3ba9e81 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sun, 11 May 2025 10:38:48 +0800 Subject: [PATCH] Removed the function of displaying the current connection IP https://github.com/2dust/v2rayN/discussions/7268 --- v2rayN/ServiceLib/Services/UpdateService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/v2rayN/ServiceLib/Services/UpdateService.cs b/v2rayN/ServiceLib/Services/UpdateService.cs index f896e4ad..914bddc5 100644 --- a/v2rayN/ServiceLib/Services/UpdateService.cs +++ b/v2rayN/ServiceLib/Services/UpdateService.cs @@ -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(result); - ip = $"({ipInfo?.country_code}) {ipInfo?.ip}"; - } + //if (time > 0) + //{ + // var result = await downloadHandle.TryDownloadString(Global.IPAPIUrl, true, Global.IPAPIUrl); + // var ipInfo = JsonUtils.Deserialize(result); + // ip = $"({ipInfo?.country_code}) {ipInfo?.ip}"; + //} return string.Format(ResUI.TestMeOutput, time, ip); }