From a3a62e1d8306c7aeb5a4e80ce5375d636d0eac07 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 12 Oct 2025 01:10:49 +0800 Subject: [PATCH] Increases UDP test timeout --- v2rayN/ServiceLib/Services/SpeedtestService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Services/SpeedtestService.cs b/v2rayN/ServiceLib/Services/SpeedtestService.cs index 4eef233d..b4fb6a32 100644 --- a/v2rayN/ServiceLib/Services/SpeedtestService.cs +++ b/v2rayN/ServiceLib/Services/SpeedtestService.cs @@ -395,7 +395,7 @@ public class SpeedtestService(Config config, Func updateF var responseTime = -1; try { - responseTime = (int)(await udpService.SendUdpRequestAsync(_config.SpeedTestItem.UdpTestUrl, it.Port, TimeSpan.FromSeconds(5))).TotalMilliseconds; + responseTime = (int)(await udpService.SendUdpRequestAsync(_config.SpeedTestItem.UdpTestUrl, it.Port, TimeSpan.FromSeconds(10))).TotalMilliseconds; } catch { }