diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2021-05-18 19:06:00 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2021-05-18 19:06:00 +0300 |
commit | bfa240c8eca57c927c0779c2f27acf994a17714f (patch) | |
tree | 79c5650776cb3dd6a78ef47fc899ea3b3b949dde /Duplicati/Library/Backend | |
parent | 90dfce81b2371a643154f1b1f13be2d5e5cf874c (diff) |
Assume we have ECDSA support if our test throws exception.
It's possible that our test will no longer be valid (e.g., due to
changes in SSH.NET), so we don't want the backend to fail if our test
is no longer valid.
Diffstat (limited to 'Duplicati/Library/Backend')
-rw-r--r-- | Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs index 1bbb75761..3237d8a4e 100644 --- a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs +++ b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs @@ -357,6 +357,10 @@ namespace Duplicati.Library.Backend client.ConnectionInfo.HostKeyAlgorithms.Remove(key);
}
}
+ catch
+ {
+ // Ignore other exceptions and assume that we have ECDSA support.
+ }
}
client.Connect();
|