Skip to content

Commit 6009e1b

Browse files
authored
Nm 103 (#1104)
* add dst rule to acls * update go mod * add dst for acl rules on nftables * add dst for acl rules on nftables * check for DST changes
1 parent ec2a7e0 commit 6009e1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

firewall/acl.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ func ProcessAclRules(server string, fwUpdate *models.FwUpdate) {
4141
(!reflect.DeepEqual(localAclRule.IPList, aclRule.IPList)) ||
4242
(len(localAclRule.IP6List) != len(aclRule.IP6List)) ||
4343
(!reflect.DeepEqual(localAclRule.IP6List, aclRule.IP6List)) ||
44+
(len(localAclRule.Dst) != len(aclRule.Dst)) ||
45+
(!reflect.DeepEqual(localAclRule.Dst, aclRule.Dst)) ||
46+
(len(localAclRule.Dst6) != len(aclRule.Dst6)) ||
47+
(!reflect.DeepEqual(localAclRule.Dst6, aclRule.Dst6)) ||
4448
(len(localAclRule.AllowedPorts) != len(aclRule.AllowedPorts)) ||
4549
(!reflect.DeepEqual(localAclRule.AllowedPorts, aclRule.AllowedPorts)) ||
4650
(aclRule.AllowedProtocol != localAclRule.AllowedProtocol) ||

0 commit comments

Comments
 (0)