mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 18:32:58 +08:00
feat: support jump hosts
This commit is contained in:
@@ -34,6 +34,15 @@ class EditHostOptionsPane(private val host: Host) : HostOptionsPane() {
|
||||
terminalOption.heartbeatIntervalTextField.value = host.options.heartbeatInterval
|
||||
|
||||
tunnelingOption.tunnelings.addAll(host.tunnelings)
|
||||
|
||||
if (host.options.jumpHosts.isNotEmpty()) {
|
||||
val hosts = HostManager.getInstance().hosts().associateBy { it.id }
|
||||
for (id in host.options.jumpHosts) {
|
||||
jumpHostsOption.jumpHosts.add(hosts[id] ?: continue)
|
||||
}
|
||||
}
|
||||
|
||||
jumpHostsOption.filter = { it.id != host.id }
|
||||
}
|
||||
|
||||
override fun getHost(): Host {
|
||||
|
||||
Reference in New Issue
Block a user