mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: missing exchange algorithms
This commit is contained in:
@@ -135,13 +135,17 @@ object SshClients {
|
|||||||
builder.globalRequestHandlers(listOf(KeepAliveHandler.INSTANCE))
|
builder.globalRequestHandlers(listOf(KeepAliveHandler.INSTANCE))
|
||||||
.factory { JGitSshClient() }
|
.factory { JGitSshClient() }
|
||||||
|
|
||||||
builder.keyExchangeFactories(
|
val keyExchangeFactories = ClientBuilder.setUpDefaultKeyExchanges(true).toMutableList()
|
||||||
|
|
||||||
|
// https://github.com/TermoraDev/termora/issues/123
|
||||||
|
keyExchangeFactories.addAll(
|
||||||
listOf(
|
listOf(
|
||||||
DHGClient.newFactory(BuiltinDHFactories.dhg1),
|
DHGClient.newFactory(BuiltinDHFactories.dhg1),
|
||||||
DHGClient.newFactory(BuiltinDHFactories.dhg14),
|
DHGClient.newFactory(BuiltinDHFactories.dhg14),
|
||||||
DHGClient.newFactory(BuiltinDHFactories.dhgex),
|
DHGClient.newFactory(BuiltinDHFactories.dhgex),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
builder.keyExchangeFactories(keyExchangeFactories)
|
||||||
|
|
||||||
if (host.tunnelings.isEmpty() && host.options.jumpHosts.isEmpty()) {
|
if (host.tunnelings.isEmpty() && host.options.jumpHosts.isEmpty()) {
|
||||||
builder.forwardingFilter(RejectAllForwardingFilter.INSTANCE)
|
builder.forwardingFilter(RejectAllForwardingFilter.INSTANCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user