From dfb649e228ce44ca471b64de1dc864ff7bb96fd3 Mon Sep 17 00:00:00 2001 From: aiqinxuancai Date: Tue, 3 Sep 2024 15:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=9B=B4=E6=96=B0tr=E7=9A=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aria2Fast/MainWindow.xaml | 1 - Aria2Fast/Service/Aria2ApiManager.cs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Aria2Fast/MainWindow.xaml b/Aria2Fast/MainWindow.xaml index a9981cc..27687a3 100644 --- a/Aria2Fast/MainWindow.xaml +++ b/Aria2Fast/MainWindow.xaml @@ -187,7 +187,6 @@ Margin="10" VerticalAlignment="Center" Orientation="Horizontal"> - UpdateTrackersList() { var aria2Path = Path.Combine(Directory.GetCurrentDirectory(), "Aria2"); var aria2Conf = Path.Combine(aria2Path, "aria2.conf"); + //https://cdn.jsdelivr.net/gh/ngosang/trackerslist@master/trackers_all.txt + //https://cf.trackerslist.com/best.txt - string list = await "https://cf.trackerslist.com/best.txt".WithTimeout(10).GetStringAsync(); + string list = await "https://cdn.jsdelivr.net/gh/ngosang/trackerslist@master/trackers_all.txt".WithTimeout(10).GetStringAsync(); list = list.Replace("\n\n", ","); - //更新内容到 var lines = File.ReadAllLines(aria2Conf); for (int i = 0; i < lines.Length; i++)