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

This commit is contained in:
Roopesh Chander 2018-10-28 21:59:52 +05:30
parent d7691158a4
commit 54dc70f910
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