Log migration of tunnel configuration
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -63,6 +63,7 @@ extension NETunnelProviderProtocol {
|
|||||||
guard let oldConfig = providerConfiguration?["WgQuickConfig"] as? String else { return false }
|
guard let oldConfig = providerConfiguration?["WgQuickConfig"] as? String else { return false }
|
||||||
providerConfiguration = nil
|
providerConfiguration = nil
|
||||||
guard passwordReference == nil else { return true }
|
guard passwordReference == nil else { return true }
|
||||||
|
wg_log(.debug, message: "Migrating tunnel configuration '\(name)'")
|
||||||
passwordReference = Keychain.makeReference(containing: oldConfig, called: name)
|
passwordReference = Keychain.makeReference(containing: oldConfig, called: name)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user