Skip to content

Commit

Permalink
utils: fix check for mrtalink url (#7636)
Browse files Browse the repository at this point in the history
Fixes incorrect condition while checking metalink URLs for accesibility
  • Loading branch information
shwstppr committed Jun 19, 2023
1 parent 1aa4f80 commit 658daef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/src/main/java/com/cloud/utils/UriUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ protected static boolean checkUrlExistenceMetalink(String url) {
List<String> urls = metalinkUrls.get("url");
boolean validUrl = false;
for (String u : urls) {
if (url.endsWith("torrent")) {
if (u.endsWith("torrent")) {
continue;
}
try {
Expand Down

0 comments on commit 658daef

Please sign in to comment.