Skip to content

Commit

Permalink
utils: fix check for mrtalink url
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
  • Loading branch information
shwstppr committed Jun 15, 2023
1 parent 03910c2 commit 1e4222c
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 1e4222c

Please sign in to comment.