forked from lix-project/lix
ssh:// -> ssh-ng://, legacy-ssh:// -> ssh://
This commit is contained in:
parent
c5b83d8913
commit
287084d688
|
@ -233,7 +233,7 @@ int main (int argc, char * * argv)
|
||||||
lock = -1;
|
lock = -1;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sshStore = openStore("ssh://" + bestMachine->hostName,
|
sshStore = openStore("ssh-ng://" + bestMachine->hostName,
|
||||||
{ {"ssh-key", bestMachine->sshKey },
|
{ {"ssh-key", bestMachine->sshKey },
|
||||||
{"max-connections", "1" } });
|
{"max-connections", "1" } });
|
||||||
hostName = bestMachine->hostName;
|
hostName = bestMachine->hostName;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
static std::string uriScheme = "legacy-ssh://";
|
static std::string uriScheme = "ssh://";
|
||||||
|
|
||||||
struct LegacySSHStore : public Store
|
struct LegacySSHStore : public Store
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
static std::string uriScheme = "ssh://";
|
static std::string uriScheme = "ssh-ng://";
|
||||||
|
|
||||||
class SSHStore : public RemoteStore
|
class SSHStore : public RemoteStore
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,7 @@ int main(int argc, char ** argv)
|
||||||
if (sshHost.empty())
|
if (sshHost.empty())
|
||||||
throw UsageError("no host name specified");
|
throw UsageError("no host name specified");
|
||||||
|
|
||||||
auto remoteUri = "legacy-ssh://" + sshHost + (gzip ? "?compress=true" : "");
|
auto remoteUri = "ssh://" + sshHost + (gzip ? "?compress=true" : "");
|
||||||
auto to = toMode ? openStore(remoteUri) : openStore();
|
auto to = toMode ? openStore(remoteUri) : openStore();
|
||||||
auto from = toMode ? openStore() : openStore(remoteUri);
|
auto from = toMode ? openStore() : openStore(remoteUri);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue