陈国伟 před 2 roky
rodič
revize
2d63c8d2d1

+ 1 - 1
Directory.Build.props

@@ -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> 		

+ 0 - 12
FastGithub.PacketIntercept/Dns/DnsInterceptor.cs

@@ -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>