mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 21:02:08 +08:00
1.1.4 -> 1.1.5 第15次更新
This commit is contained in:
parent
bcccb73520
commit
f428de3fd7
11
Utils/DnsFlusher.cs
Normal file
11
Utils/DnsFlusher.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
namespace Sheas_Cealer.Utils;
|
||||||
|
|
||||||
|
internal static partial class DnsFlusher
|
||||||
|
{
|
||||||
|
[LibraryImport("dnsapi.dll")]
|
||||||
|
private static partial void DnsFlushResolverCache();
|
||||||
|
|
||||||
|
internal static void FlushDns() => DnsFlushResolverCache();
|
||||||
|
}
|
@ -335,6 +335,8 @@ public partial class MainWin : Window
|
|||||||
|
|
||||||
if (sender == null)
|
if (sender == null)
|
||||||
MihomoButtonHoldTimer_Tick(null, EventArgs.Empty);
|
MihomoButtonHoldTimer_Tick(null, EventArgs.Empty);
|
||||||
|
|
||||||
|
DnsFlusher.FlushDns();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user