mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Pass keys around better
This commit is contained in:
parent
9b50626ebe
commit
aad3bd4f89
3 changed files with 3 additions and 4 deletions
|
|
@ -58,7 +58,7 @@ extension NodeInfoEntity {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
var canRemoteAdmin: Bool {
|
||||
if !(securityConfig?.adminKey?.isEmpty ?? true) {
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@ struct NetworkConfig: View {
|
|||
}
|
||||
.onChange(of: wifiSsid) { newSSID in
|
||||
if newSSID != node?.networkConfig?.wifiSsid { hasChanges = true }
|
||||
|
||||
}
|
||||
.onChange(of: wifiPsk) { newPsk in
|
||||
if newPsk != node?.networkConfig?.wifiPsk { hasChanges = true }
|
||||
|
|
|
|||
|
|
@ -132,8 +132,8 @@ struct SecurityConfig: View {
|
|||
}
|
||||
|
||||
var config = Config.SecurityConfig()
|
||||
//config.publicKey = publicKey
|
||||
//config.privateKey = privateKey
|
||||
config.publicKey = Data(base64Encoded: publicKey) ?? Data()
|
||||
config.privateKey = Data(base64Encoded: privateKey) ?? Data()
|
||||
config.adminKey = Data(base64Encoded: adminKey) ?? Data()
|
||||
config.isManaged = isManaged
|
||||
config.serialEnabled = serialEnabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue