]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Tunnels list: Need to pass in a name to the parser
authorRoopesh Chander <roop@roopc.net>
Sun, 28 Oct 2018 16:29:52 +0000 (21:59 +0530)
committerRoopesh Chander <roop@roopc.net>
Sun, 28 Oct 2018 16:29:52 +0000 (21:59 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift

index d103fa0b3770e8ffe1bd12f8c2a5c3d949a129de..884c4a91a0ef3a2aaf7567a18e810ce728f294a3 100644 (file)
@@ -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