We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59112c9 commit 84264b3Copy full SHA for 84264b3
russh/src/client/kex.rs
@@ -39,14 +39,7 @@ impl KexInit {
39
debug!("i0 = {:?}", i0);
40
41
let mut kex = KEXES
42
- .get(
43
- &self
44
- .algo
45
- .as_ref()
46
- .map(|x| &x.kex)
47
- .or_else(|| config.preferred.kex.first())
48
- .ok_or(crate::Error::NoCommonKexAlgo)?,
49
- )
+ .get(&algo.kex)
50
.ok_or(crate::Error::UnknownAlgo)?
51
.make();
52
0 commit comments