Skip to content

Commit 533b582

Browse files
committed
Change filter string for QUIC protocol dropping, and change filter ordering
Have highest priority to HTTP/S handle. This is a reversion.
1 parent d85e9be commit 533b582

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

CitadelCore.Windows/CitadelCore.Windows/CitadelCore.Windows.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<Version>1.3.3</Version>
5+
<Version>1.3.4</Version>
66
<Authors>Jesse Nicholson</Authors>
77
<Company>Technik Empire</Company>
88
<Description>Transparent filtering proxy engine for Windows.</Description>
99
<Copyright>Copyright 2017 Jesse Nicholson</Copyright>
1010
<PackageLicenseUrl>https://www.gnu.org/licenses/lgpl-3.0.en.html</PackageLicenseUrl>
1111
<PackageProjectUrl>https://github.com/TechnikEmpire/CitadelCore.Windows</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/TechnikEmpire/CitadelCore.Windows</RepositoryUrl>
13-
<PackageReleaseNotes>Fixes a bug where IPV6 address conversion from unmanaged memory to managed IPAddress objects was not done correctly, causing browser IPV6 traffic to escape filtering.</PackageReleaseNotes>
13+
<PackageReleaseNotes>Changes QUIC filter string priority.</PackageReleaseNotes>
1414
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1515
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16-
<AssemblyVersion>1.3.3.0</AssemblyVersion>
17-
<FileVersion>1.3.3.0</FileVersion>
16+
<AssemblyVersion>1.3.4.0</AssemblyVersion>
17+
<FileVersion>1.3.4.0</FileVersion>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

CitadelCore.Windows/CitadelCore.Windows/Diversion/WindowsDiverter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ public void Start(int numThreads)
181181
#else
182182
string mainFilterString = "outbound and tcp";
183183
#endif
184-
string QUICFilterString = "outbound and udp.DstPort == 80 || udp.DstPort == 443";
184+
string QUICFilterString = "udp and (udp.DstPort == 80 || udp.DstPort == 443)";
185185

186-
m_diversionHandle = WinDivertMethods.WinDivertOpen(mainFilterString, WINDIVERT_LAYER.WINDIVERT_LAYER_NETWORK, -999, 0);
186+
m_diversionHandle = WinDivertMethods.WinDivertOpen(mainFilterString, WINDIVERT_LAYER.WINDIVERT_LAYER_NETWORK, -1000, 0);
187187

188188
if(m_diversionHandle == new IntPtr(-1) || m_diversionHandle == IntPtr.Zero)
189189
{
190190
// Invalid handle value.
191191
throw new Exception(string.Format("Failed to open main diversion handle. Got Win32 error code {0}.", Marshal.GetLastWin32Error()));
192192
}
193193

194-
m_QUICDropHandle = WinDivertMethods.WinDivertOpen(QUICFilterString, WINDIVERT_LAYER.WINDIVERT_LAYER_NETWORK, -1000, WinDivertConstants.WINDIVERT_FLAG_DROP);
194+
m_QUICDropHandle = WinDivertMethods.WinDivertOpen(QUICFilterString, WINDIVERT_LAYER.WINDIVERT_LAYER_NETWORK, -999, WinDivertConstants.WINDIVERT_FLAG_DROP);
195195

196196
if(m_QUICDropHandle == new IntPtr(-1) || m_QUICDropHandle == IntPtr.Zero)
197197
{

CitadelCore.Windows/CitadelCoreTest/CitadelCoreTest_x64.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</ItemGroup>
6262
<ItemGroup>
6363
<PackageReference Include="CitadelCore.Windows">
64-
<Version>1.3.3</Version>
64+
<Version>1.3.4</Version>
6565
</PackageReference>
6666
</ItemGroup>
6767
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 commit comments

Comments
 (0)