IPAPIUrl default set index 0

This commit is contained in:
koll zhu 2025-06-15 10:16:42 +08:00
parent 6e76c593cc
commit 4f16e63c13

View file

@ -128,6 +128,10 @@ public class ConfigHandler
{ {
config.SpeedTestItem.MixedConcurrencyCount = 5; config.SpeedTestItem.MixedConcurrencyCount = 5;
} }
if (config.SpeedTestItem.IPAPIUrl.IsNullOrEmpty())
{
config.SpeedTestItem.IPAPIUrl = Global.IPAPIUrls.First();
}
config.Mux4RayItem ??= new() config.Mux4RayItem ??= new()
{ {