diff options
author | Roopesh Chander <roop@roopc.net> | 2018-10-28 21:59:52 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-10-28 21:59:52 +0530 |
commit | fa410c668a728d2860661bc0ff5b35df73eb1005 (patch) | |
tree | 5cfa28ac25c5711126f0ae773c5786651e8581e1 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | |
parent | Revert "Parser: Interface name can be added after parsing" (diff) | |
download | wireguard-apple-fa410c668a728d2860661bc0ff5b35df73eb1005.tar.xz wireguard-apple-fa410c668a728d2860661bc0ff5b35df73eb1005.zip |
Tunnels list: Need to pass in a name to the parser
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index d103fa0..884c4a9 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -67,7 +67,7 @@ class TunnelsListTableViewController: UITableViewController { let name = configFileURL.deletingPathExtension().lastPathComponent do { let fileContents = try String(contentsOf: configFileURL) - try tunnelConfiguration = WgQuickConfigFileParser.parse(fileContents) + try tunnelConfiguration = WgQuickConfigFileParser.parse(fileContents, name: name) } catch { showErrorAlert(title: "Could not import config", message: "There was an error importing the config file") return |