diff options
author | Roopesh Chander <roop@roopc.net> | 2018-10-25 15:50:27 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-10-27 15:13:02 +0530 |
commit | c8fba951ad3b6379baba6cb4468aa709d9e8e478 (patch) | |
tree | e19755c346c9cc189ac2f2d61615d224497ec747 /WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | |
parent | Import: Support for importing a config file from file providers (diff) | |
download | wireguard-apple-c8fba951ad3b6379baba6cb4468aa709d9e8e478.tar.xz wireguard-apple-c8fba951ad3b6379baba6cb4468aa709d9e8e478.zip |
VPN: Adding, modifying and deleting actual NETunnelProviderManager instances
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift index 769c348..061a8b2 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift @@ -25,7 +25,7 @@ class TunnelDetailTableViewController: UITableViewController { init(tunnelsManager tm: TunnelsManager, tunnel t: TunnelContainer) { tunnelsManager = tm tunnel = t - tunnelViewModel = TunnelViewModel(tunnelConfiguration: t.tunnelConfiguration) + tunnelViewModel = TunnelViewModel(tunnelConfiguration: t.tunnelConfiguration()) super.init(style: .grouped) } @@ -56,7 +56,7 @@ class TunnelDetailTableViewController: UITableViewController { extension TunnelDetailTableViewController: TunnelEditTableViewControllerDelegate { func tunnelSaved(tunnel: TunnelContainer) { - tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration) + tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration()) self.tableView.reloadData() } func tunnelEditingCancelled() { |