aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/firewall/rules.go
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/firewall/rules.go')
-rw-r--r--tunnel/firewall/rules.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnel/firewall/rules.go b/tunnel/firewall/rules.go
index 1f28d3ab..1216065b 100644
--- a/tunnel/firewall/rules.go
+++ b/tunnel/firewall/rules.go
@@ -260,11 +260,11 @@ func permitWireGuardService(session uintptr, baseObjects *baseObjects, weight ui
func permitLoopback(session uintptr, baseObjects *baseObjects, weight uint8) error {
condition := wtFwpmFilterCondition0{
- fieldKey: cFWPM_CONDITION_INTERFACE_TYPE,
- matchType: cFWP_MATCH_EQUAL,
+ fieldKey: cFWPM_CONDITION_FLAGS,
+ matchType: cFWP_MATCH_FLAGS_ALL_SET,
conditionValue: wtFwpConditionValue0{
_type: cFWP_UINT32,
- value: uintptr(cIF_TYPE_SOFTWARE_LOOPBACK),
+ value: uintptr(cFWP_CONDITION_FLAG_IS_LOOPBACK),
},
}