mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update Meshtastic/Helpers/TAK/TAKServerManager.swift
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
239f1ac5cc
commit
b7bc247574
1 changed files with 4 additions and 1 deletions
|
|
@ -585,7 +585,10 @@ final class TAKServerManager: ObservableObject {
|
|||
}
|
||||
|
||||
let newKey = generateChannelKey(size: 32)
|
||||
let newPsk = Data(base64Encoded: newKey) ?? Data()
|
||||
guard let newPsk = Data(base64Encoded: newKey) else {
|
||||
Logger.tak.error("Failed to decode generated channel key; aborting primary channel fix")
|
||||
return false
|
||||
}
|
||||
|
||||
primaryChannel.name = "TAK"
|
||||
primaryChannel.psk = newPsk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue