mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-07 23:46:00 +12:00
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:
parent
44e19803af
commit
38a85214c3
|
@ -47,6 +47,12 @@ public override bool CheckConfig(UploadersConfig config)
|
||||||
|
|
||||||
public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo)
|
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);
|
return new Lambda(config.LambdaSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue