mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
functions to get hosts and indexes matching input, and to update a host
added a hostkey checker - fatalerror rn reordered ui in connection view to make more sense added sections moved connect button to toolbar, disconect is there too! hostsview update
This commit is contained in:
@@ -17,7 +17,7 @@ class SSHHandler: ObservableObject {
|
||||
|
||||
@Published var connected: Bool = false
|
||||
@Published var authorized: Bool = false
|
||||
@Published var testSuceeded: Bool = false
|
||||
@Published var testSuceeded: Bool? = nil
|
||||
|
||||
@Published var host: Host
|
||||
@Published var terminal: String = ""
|
||||
@@ -86,8 +86,9 @@ class SSHHandler: ObservableObject {
|
||||
ssh_free(session)
|
||||
withAnimation { authorized = false }
|
||||
withAnimation { connected = false }
|
||||
withAnimation { testSuceeded = nil }
|
||||
session = nil
|
||||
host.key = nil
|
||||
// host.key = nil
|
||||
}
|
||||
|
||||
func testExec() {
|
||||
|
||||
Reference in New Issue
Block a user