Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Jan 17, 2025
1 parent 5eab1dd commit 023d26f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions log.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
## 已知问题

## 已完成 Done
### 2025.1.17
- 修复日志倒序问题
- 暂时禁用DNS覆盖

### 2025.1.14
- 添加内存大小检测
- 添加检测开关
Expand Down
2 changes: 1 addition & 1 deletion src/ColorMC.Core/CoreMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/// <summary>
/// 版本号
Expand Down
15 changes: 7 additions & 8 deletions src/ColorMC.Core/Net/CoreHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -106,7 +106,6 @@ public static void Init()
}
}


if (dnsClient != null)
{
DownloadClient = new(new DnsDelegatingHandler(dnsClient)
Expand Down
2 changes: 2 additions & 0 deletions src/ColorMC.Gui/Utils/GameLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public List<GameLogItemObj> GetLog(LogLevel type)
}
}

list.Reverse();

return list;
}

Expand Down

0 comments on commit 023d26f

Please sign in to comment.