Skip to content

Commit 658daef

Browse files
authored
utils: fix check for mrtalink url (#7636)
Fixes incorrect condition while checking metalink URLs for accesibility
1 parent 1aa4f80 commit 658daef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/main/java/com/cloud/utils/UriUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ protected static boolean checkUrlExistenceMetalink(String url) {
416416
List<String> urls = metalinkUrls.get("url");
417417
boolean validUrl = false;
418418
for (String u : urls) {
419-
if (url.endsWith("torrent")) {
419+
if (u.endsWith("torrent")) {
420420
continue;
421421
}
422422
try {

0 commit comments

Comments
 (0)