mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fixes incorrect default port when an httpHomePath is not specified for an FTP Account. (See discussion on #330).
This commit is contained in:
parent
dfc722b7a5
commit
d101541e74
1 changed files with 1 additions and 0 deletions
|
@ -190,6 +190,7 @@ public string GetUriPath(string filename, string subFolderPath = null)
|
|||
}
|
||||
|
||||
httpHomeUri = new UriBuilder(URLHelpers.CombineURL(host, subFolderPath, filename));
|
||||
httpHomeUri.Port = -1; //Since httpHomePath is not set, it's safe to erase UriBuilder's assumed port number
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue