Fix migration not recovering auth-user-pass option

Was looking up new UUID, not migrated one.
This commit is contained in:
Davide De Rosa 2022-04-13 11:13:38 +02:00
parent 4a047ece58
commit 3a3d2460a8
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ extension AppManager {
remotes.append("\(hostname):\($0)")
}
ovpn["remotes"] = remotes
ovpn["authUserPass"] = authUserPass.contains(header.id.uuidString)
ovpn["authUserPass"] = authUserPass.contains(oldUUIDString)
let cfg = try JSON(ovpn).decode(OpenVPN.Configuration.self)
// keychain