Skip to content

Commit 4a438b6

Browse files
committed
Set source CIDR list when updating if it is not null
1 parent 94bdcb7 commit 4a438b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/network/rules/RulesManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ public PortForwardingRule updatePortForwardingRule(UpdatePortForwardingRuleCmd c
16841684
rule.setDestinationIpAddress(dstIp);
16851685
}
16861686

1687-
if (CollectionUtils.isNotEmpty(sourceCidrList)) {
1687+
if (sourceCidrList != null) {
16881688
rule.setSourceCidrList(sourceCidrList);
16891689
}
16901690

0 commit comments

Comments
 (0)