This commit is contained in:
陈国伟 2022-09-28 17:20:24 +08:00
parent e493765433
commit 2d63c8d2d1
2 changed files with 1 additions and 13 deletions

View File

@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.1.4</Version>
<Version>2.1.5</Version>
<Nullable>enable</Nullable>
<TargetFramework>net7.0</TargetFramework>
<IsWebConfigTransformDisabled>true</IsWebConfigTransformDisabled>

View File

@ -35,18 +35,6 @@ namespace FastGithub.PacketIntercept.Dns
[DllImport("dnsapi.dll", EntryPoint = "DnsFlushResolverCache", SetLastError = true)]
private static extern void DnsFlushResolverCache();
/// <summary>
/// 首次加载驱动往往有异常,所以要提前加载
/// </summary>
static DnsInterceptor()
{
try
{
using (new WinDivert(Filter.False, WinDivertLayer.Network)) { }
}
catch (Exception) { }
}
/// <summary>
/// dns拦截器
/// </summary>