Skip to content

Commit

Permalink
Fix DNS Filter NumFilterConditions
Browse files Browse the repository at this point in the history
  • Loading branch information
dyhkwong authored Jun 6, 2024
1 parent 7415949 commit 3339797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tun_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (t *NativeTun) configure() error {

blockDNSFilter4 := winsys.FWPM_FILTER0{}
blockDNSFilter4.FilterCondition = &blockDNSCondition[0]
blockDNSFilter4.NumFilterConditions = 2
blockDNSFilter4.NumFilterConditions = 1
blockDNSFilter4.DisplayData = winsys.CreateDisplayData(TunnelType, "block ipv4 dns")
blockDNSFilter4.SubLayerKey = subLayerKey
blockDNSFilter4.LayerKey = winsys.FWPM_LAYER_ALE_AUTH_CONNECT_V4
Expand All @@ -319,7 +319,7 @@ func (t *NativeTun) configure() error {

blockDNSFilter6 := winsys.FWPM_FILTER0{}
blockDNSFilter6.FilterCondition = &blockDNSCondition[0]
blockDNSFilter6.NumFilterConditions = 2
blockDNSFilter6.NumFilterConditions = 1
blockDNSFilter6.DisplayData = winsys.CreateDisplayData(TunnelType, "block ipv6 dns")
blockDNSFilter6.SubLayerKey = subLayerKey
blockDNSFilter6.LayerKey = winsys.FWPM_LAYER_ALE_AUTH_CONNECT_V6
Expand Down

0 comments on commit 3339797

Please sign in to comment.