mirror of https://github.com/apache/cloudstack.git
utils: fix check for mrtalink url (#7636)
Fixes incorrect condition while checking metalink URLs for accesibility
This commit is contained in:
parent
1aa4f80741
commit
658daef715
|
|
@ -416,7 +416,7 @@ public class UriUtils {
|
|||
List<String> urls = metalinkUrls.get("url");
|
||||
boolean validUrl = false;
|
||||
for (String u : urls) {
|
||||
if (url.endsWith("torrent")) {
|
||||
if (u.endsWith("torrent")) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue