Skip to content

Commit aa91e38

Browse files
committed
Set source CIDR list when updating if it is not null
1 parent c61fab3 commit aa91e38

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
@@ -1686,7 +1686,7 @@ public PortForwardingRule updatePortForwardingRule(UpdatePortForwardingRuleCmd c
16861686
rule.setDestinationIpAddress(dstIp);
16871687
}
16881688

1689-
if (CollectionUtils.isNotEmpty(sourceCidrList)) {
1689+
if (sourceCidrList != null) {
16901690
rule.setSourceCidrList(sourceCidrList);
16911691
}
16921692

0 commit comments

Comments
 (0)