mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +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()
|
self.host.key = getHostkey()
|
||||||
}
|
}
|
||||||
|
|
||||||
var verbosity: Int = SSH_LOG_FUNCTIONS
|
var verbosity: Int = 0
|
||||||
|
|
||||||
session = ssh_new()
|
session = ssh_new()
|
||||||
guard session != nil else {
|
guard session != nil else {
|
||||||
|
|||||||
@@ -146,10 +146,7 @@ struct ConnectionView: View {
|
|||||||
handler.host.key = hostsManager.getHostMatching(handler.host)?.key
|
handler.host.key = hostsManager.getHostMatching(handler.host)?.key
|
||||||
}
|
}
|
||||||
} message: {
|
} message: {
|
||||||
Text("""
|
Text("Expected \(hostsManager.getHostMatching(handler.host)!.key?.base64EncodedString() ?? "null")\nbut recieved \(handler.host.key?.base64EncodedString() ?? "null" ) from the server")
|
||||||
Expected \(hostsManager.getHostMatching(handler.host)!.key!.base64EncodedString())
|
|
||||||
but recieved \(handler.host.key!.base64EncodedString()) from the server
|
|
||||||
""")
|
|
||||||
}
|
}
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
|
|||||||
Reference in New Issue
Block a user