mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
cleaned up crashes and stuff from the alert message not getting a value
This commit is contained in:
@@ -54,7 +54,7 @@ class SSHHandler: ObservableObject {
|
||||
self.host.key = getHostkey()
|
||||
}
|
||||
|
||||
var verbosity: Int = SSH_LOG_FUNCTIONS
|
||||
var verbosity: Int = 0
|
||||
|
||||
session = ssh_new()
|
||||
guard session != nil else {
|
||||
|
||||
@@ -146,10 +146,7 @@ struct ConnectionView: View {
|
||||
handler.host.key = hostsManager.getHostMatching(handler.host)?.key
|
||||
}
|
||||
} message: {
|
||||
Text("""
|
||||
Expected \(hostsManager.getHostMatching(handler.host)!.key!.base64EncodedString())
|
||||
but recieved \(handler.host.key!.base64EncodedString()) from the server
|
||||
""")
|
||||
Text("Expected \(hostsManager.getHostMatching(handler.host)!.key?.base64EncodedString() ?? "null")\nbut recieved \(handler.host.key?.base64EncodedString() ?? "null" ) from the server")
|
||||
}
|
||||
.transition(.opacity)
|
||||
.toolbar {
|
||||
|
||||
Reference in New Issue
Block a user