2.1.5
This commit is contained in:
parent
e493765433
commit
2d63c8d2d1
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user