Update Lambda URL if old url is in config

Next goal is to allow defining a custom url, in case the URL changes
again or someone wants to run their own instance of Lambda.
This commit is contained in:
Marcus Stojcevich 2018-01-28 16:17:32 -05:00
parent 44e19803af
commit 38a85214c3

View file

@ -47,6 +47,12 @@ public override bool CheckConfig(UploadersConfig config)
public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo)
{
// Correct old URLs
if (config.LambdaSettings != null && config.LambdaSettings.UploadURL == "https://λ.pw/")
{
config.LambdaSettings.UploadURL = "https://lbda.net/";
}
return new Lambda(config.LambdaSettings);
}