sureshanaparti commented on code in PR #9567:
URL: https://github.com/apache/cloudstack/pull/9567#discussion_r1727475639


##########
services/secondary-storage/controller/src/main/java/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java:
##########
@@ -401,6 +401,9 @@ private List<String> getAllowedInternalSiteCidrs() {
         String[] cidrs = _allowedInternalSites.split(",");
         for (String cidr : cidrs) {
             if (NetUtils.isValidIp4Cidr(cidr) || NetUtils.isValidIp4(cidr) || 
!cidr.startsWith("0.0.0.0")) {
+                if (NetUtils.getCleanIp4Cidr(cidr).equals(cidr)) {
+                    s_logger.warn(String.format("Invalid CIDR %s in 
secstorage.allowed.internal.sites", cidr));

Review Comment:
   ```suggestion
                       s_logger.warn(String.format("Invalid CIDR %s in the 
config %s", cidr, SecStorageAllowedInternalDownloadSites.key()));
   ```
   
   try import SecStorageAllowedInternalDownloadSites if possible, otherwise 
keep 'secstorage.allowed.internal.sites'.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to