diff --git a/Passepartout/Sources/Model/ConnectionService+Migration.swift b/Passepartout/Sources/Model/ConnectionService+Migration.swift index a7483795..137a8766 100644 --- a/Passepartout/Sources/Model/ConnectionService+Migration.swift +++ b/Passepartout/Sources/Model/ConnectionService+Migration.swift @@ -58,7 +58,8 @@ extension ConnectionService { static func migrateToWrappedSessionConfiguration(_ json: inout [String: Any]) throws { guard let profiles = json["profiles"] as? [[String: Any]] else { - throw ApplicationError.migration + // migrated + return } var newProfiles: [[String: Any]] = [] for var container in profiles { @@ -83,6 +84,7 @@ extension ConnectionService { static func migrateToBaseConfiguration(_ json: inout [String: Any]) throws { guard var baseConfiguration = json["tunnelConfiguration"] as? [String: Any] else { + // migrated return } migrateSessionConfiguration(in: &baseConfiguration) @@ -124,5 +126,8 @@ extension ConnectionService { sessionConfiguration["renegotiatesAfter"] = value } map["sessionConfiguration"] = sessionConfiguration + + map.removeValue(forKey: "debugLogKey") + map.removeValue(forKey: "lastErrorKey") } }