Skip to content

Commit

Permalink
Merge pull request #43 from arnova/ssh_prefix_fix
Browse files Browse the repository at this point in the history
fixed: Using ssh:// prefixes was broken
  • Loading branch information
arnova committed Sep 22, 2019
2 parents 1c95802 + 05c2dab commit 40e4a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFTPFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ATTRIBUTE_HIDDEN CSFTPFile : public kodi::addon::CInstanceVFS
{
CSFTPSessionPtr session = CSFTPSessionManager::Get().CreateSession(url);
std::stringstream str;
str << "sftp://" << url.username << ":" << url.password
str << url.protocol << "://" << url.username << ":" << url.password
<< "@" << url.hostname << ":" << (url.port ? url.port : 22) << "/";

return session->GetDirectory(str.str(), url.filename, items);
Expand Down

0 comments on commit 40e4a41

Please sign in to comment.