Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-05-18 19:06:00 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-05-18 19:06:00 +0300
commitbfa240c8eca57c927c0779c2f27acf994a17714f (patch)
tree79c5650776cb3dd6a78ef47fc899ea3b3b949dde /Duplicati/Library/Backend
parent90dfce81b2371a643154f1b1f13be2d5e5cf874c (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.cs4
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();