mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Merge pull request #3047 from sylveon/s3-random
Add support for random domain syntax in S3 uploader
This commit is contained in:
commit
a06a1f4925
2 changed files with 3 additions and 2 deletions
|
@ -238,7 +238,8 @@ public string GenerateURL(string uploadPath)
|
|||
|
||||
if (Settings.UseCustomCNAME && !string.IsNullOrEmpty(Settings.CustomDomain))
|
||||
{
|
||||
url = URLHelpers.CombineURL(Settings.CustomDomain, uploadPath);
|
||||
string parsedDomain = new CustomUploaderItem().ParseURL(Settings.CustomDomain, false);
|
||||
url = URLHelpers.CombineURL(parsedDomain, uploadPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -233,7 +233,7 @@ private void ParseRegexList()
|
|||
}
|
||||
}
|
||||
|
||||
private string ParseURL(string url, bool output)
|
||||
public string ParseURL(string url, bool output)
|
||||
{
|
||||
if (string.IsNullOrEmpty(url))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue