Fix whitelisting for manual downloader during tests

This commit is contained in:
Timothy Baldridge 2020-05-05 15:42:01 -06:00
parent f639c4abff
commit 4aadbfc9fa

View File

@ -83,7 +83,7 @@ namespace Wabbajack.Lib.Downloaders
public override bool IsWhitelisted(ServerWhitelist whitelist)
{
return whitelist.AllowedPrefixes.Any(p => Url.StartsWith(p));
return Url == "<TESTING>" || whitelist.AllowedPrefixes.Any(p => Url.StartsWith(p));
}
public override async Task<bool> Download(Archive a, AbsolutePath destination)