Skip to content

Commit 1c36842

Browse files
committed
Validate source CIDR list on PF update
1 parent 742f845 commit 1c36842

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,8 @@ public PortForwardingRule updatePortForwardingRule(UpdatePortForwardingRuleCmd c
16561656
}
16571657
}
16581658

1659+
validatePortForwardingSourceCidrList(sourceCidrList);
1660+
16591661
// revoke old rules at first
16601662
List<PortForwardingRuleVO> rules = new ArrayList<PortForwardingRuleVO>();
16611663
rule.setState(State.Revoke);

0 commit comments

Comments
 (0)