Tunnels list: Need to pass in a name to the parser

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-28 21:59:52 +05:30
parent 4855eafb39
commit fa410c668a
1 changed files with 1 additions and 1 deletions

View 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