diff --git a/log.md b/log.md index a970c894c..1dbf77626 100644 --- a/log.md +++ b/log.md @@ -8,6 +8,10 @@ ## 已知问题 ## 已完成 Done +### 2025.1.17 +- 修复日志倒序问题 +- 暂时禁用DNS覆盖 + ### 2025.1.14 - 添加内存大小检测 - 添加检测开关 diff --git a/src/ColorMC.Core/CoreMain.cs b/src/ColorMC.Core/CoreMain.cs index a23907eb9..44982196f 100644 --- a/src/ColorMC.Core/CoreMain.cs +++ b/src/ColorMC.Core/CoreMain.cs @@ -16,7 +16,7 @@ public static class ColorMCCore { public const int VersionNum = 34; public const string TopVersion = "A34"; - public const string DateVersion = "20250114"; + public const string DateVersion = "20250117"; /// /// 版本号 diff --git a/src/ColorMC.Core/Net/CoreHttpClient.cs b/src/ColorMC.Core/Net/CoreHttpClient.cs index 72ab5222c..0b2c707e4 100644 --- a/src/ColorMC.Core/Net/CoreHttpClient.cs +++ b/src/ColorMC.Core/Net/CoreHttpClient.cs @@ -74,13 +74,13 @@ public static void Init() //Dns if (dns.Enable) { - if (dns.DnsType is DnsType.DnsOver or DnsType.DnsOverHttpsWithUdp) - { - foreach (var item in dns.Dns) - { - _dnsClients.Add(new DnsUdpClient(IPAddress.Parse(item))); - } - } + //if (dns.DnsType is DnsType.DnsOver or DnsType.DnsOverHttpsWithUdp) + //{ + //foreach (var item in dns.Dns) + //{ + // _dnsClients.Add(new DnsUdpClient(IPAddress.Parse(item))); + //} + //} if (dns.DnsType is DnsType.DnsOverHttps or DnsType.DnsOverHttpsWithUdp) { foreach (var item in dns.Https) @@ -106,7 +106,6 @@ public static void Init() } } - if (dnsClient != null) { DownloadClient = new(new DnsDelegatingHandler(dnsClient) diff --git a/src/ColorMC.Gui/Utils/GameLog.cs b/src/ColorMC.Gui/Utils/GameLog.cs index f80cc1f75..718dcbf75 100644 --- a/src/ColorMC.Gui/Utils/GameLog.cs +++ b/src/ColorMC.Gui/Utils/GameLog.cs @@ -99,6 +99,8 @@ public List GetLog(LogLevel type) } } + list.Reverse(); + return list; }