Skip to content

Commit af8d266

Browse files
committed
fixed if else logic
1 parent 0f96f04 commit af8d266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

npm/pkg/dataplane/policies/policy_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ func (acl *ACLPolicy) convertToAclSettings(aclID string) (*NPMACLPolSettings, er
145145
// INGRESS: Remote = Source IPs from policy
146146
policySettings.RemoteAddresses = srcListStr
147147
}
148+
} else {
149+
policySettings.LocalAddresses = srcListStr
150+
policySettings.RemoteAddresses = dstListStr
148151
}
149152

150-
policySettings.LocalAddresses = srcListStr
151-
policySettings.RemoteAddresses = dstListStr
152-
153153
// Switch ports based on direction
154154
policySettings.RemotePorts = ""
155155
policySettings.LocalPorts = dstPortStr

0 commit comments

Comments
 (0)