mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13: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
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue