From 54dc70f9103d8df933ab131f67d12be628dc3d89 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sun, 28 Oct 2018 21:59:52 +0530 Subject: [PATCH] Tunnels list: Need to pass in a name to the parser --- WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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