Skip to content

Commit f52077e

Browse files
Apply suggestion from @weizhouapache
1 parent 0b53714 commit f52077e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/ca/root-ca/src/main/java/org/apache/cloudstack/ca/provider/RootCAProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ protected void addConfiguredManagementIp(List<String> ipList) {
412412
networkInterface.getInetAddresses().asIterator().forEachRemaining(inetAddress -> {
413413
String[] msNetworkCidrs = msNetworkCidr.split(",");
414414
for (String cidr : msNetworkCidrs) {
415-
if (NetUtils.isIpWithInCidrRange(inetAddress.getHostAddress(), cidr)) {
415+
if (NetUtils.isIpWithInCidrRange(inetAddress.getHostAddress(), cidr.trim())) {
416416
ipList.add(inetAddress.getHostAddress());
417417
logger.debug(String.format("Added IP [%s] to the list of IPs in the management server's certificate.", inetAddress.getHostAddress()));
418418
}

0 commit comments

Comments
 (0)