From 846b539e7e114431643f433dddbac96dc7df08ca Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Thu, 15 Jul 2021 21:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E8=BA=AB=E4=BB=BD=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Scanner/GithubScanResults.cs | 3 ++- FastGithub/README.MD | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FastGithub.Scanner/GithubScanResults.cs b/FastGithub.Scanner/GithubScanResults.cs index dd052c2..10fd499 100644 --- a/FastGithub.Scanner/GithubScanResults.cs +++ b/FastGithub.Scanner/GithubScanResults.cs @@ -124,7 +124,8 @@ namespace FastGithub.Scanner { using var stream = File.OpenWrite(dataFile); var datas = this.ToArray() - .OrderByDescending(item => item.AvailableRate) + .OrderBy(item => item.Domain) + .ThenByDescending(item => item.AvailableRate) .Select(item => GithubDomainAddress.From(item)); await JsonSerializer.SerializeAsync(stream, datas, cancellationToken: cancellationToken); diff --git a/FastGithub/README.MD b/FastGithub/README.MD index 715ea47..ccd6f3e 100644 --- a/FastGithub/README.MD +++ b/FastGithub/README.MD @@ -11,6 +11,6 @@ github定制版的dns服务,解析github最优的ip * 在你的电脑安装FastGithub.cer到`将所有的证书都放入下载存储\受信任的根证书颁发机构` ### 以windows服务运行 -以管理员身份运行cmd,键入如下命令,其中D:\Softs为软件实际目录 +运行cmd,键入如下命令,其中D:\Softs为软件实际目录 * D:\Softs\FastGithub.exe start // 安装并启动服务 * D:\Softs\FastGithub.exe stop // 卸载并删除服务 \ No newline at end of file