From 703e17478de2ef8550741a7639d38af30d675de0 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:55:19 +0800 Subject: [PATCH] fix speed test url --- v2rayN/v2rayN/Handler/DownloadHandle.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Handler/DownloadHandle.cs b/v2rayN/v2rayN/Handler/DownloadHandle.cs index 1f597fcd..a3fcfbdd 100644 --- a/v2rayN/v2rayN/Handler/DownloadHandle.cs +++ b/v2rayN/v2rayN/Handler/DownloadHandle.cs @@ -195,7 +195,8 @@ namespace v2rayN.Handler try { - string status = GetRealPingTime(Global.SpeedPingTestUrl, webProxy, 10, out int responseTime); + var config = LazyConfig.Instance.GetConfig(); + string status = GetRealPingTime(config.constItem.speedPingTestUrl, webProxy, 10, out int responseTime); bool noError = Utils.IsNullOrEmpty(status); return noError ? responseTime : -1; }