mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-31 13:02:08 +00:00
a55eefcd5d
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
20 lines
635 B
Swift
20 lines
635 B
Swift
//
|
|
// Copyright © 2018 WireGuard LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension AppCoordinator: TunnelInfoTableViewControllerDelegate {
|
|
func configure(tunnel: Tunnel, tunnelInfoTableViewController: TunnelInfoTableViewController) {
|
|
print("configure tunnel \(tunnel)")
|
|
let editContext = persistentContainer.newBackgroundContext()
|
|
var backgroundTunnel: Tunnel?
|
|
editContext.performAndWait {
|
|
backgroundTunnel = editContext.object(with: tunnel.objectID) as? Tunnel
|
|
}
|
|
|
|
showTunnelConfigurationViewController(tunnel: backgroundTunnel, context: editContext)
|
|
}
|
|
|
|
}
|