aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-28 21:59:52 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-28 21:59:52 +0530
commitfa410c668a728d2860661bc0ff5b35df73eb1005 (patch)
tree5cfa28ac25c5711126f0ae773c5786651e8581e1 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
parentRevert "Parser: Interface name can be added after parsing" (diff)
downloadwireguard-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 'WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift2
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