Skip to content

Commit

Permalink
更换更新tr的源
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Sep 3, 2024
1 parent ffa976f commit dfb649e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Aria2Fast/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
Margin="10"
VerticalAlignment="Center"
Orientation="Horizontal">
<Button Content="hahah"></Button>

<Border
x:Name="LinkStatusBorder"
Expand Down
5 changes: 3 additions & 2 deletions Aria2Fast/Service/Aria2ApiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ private async Task<bool> 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++)
Expand Down

0 comments on commit dfb649e

Please sign in to comment.