Tunnels list: Need to pass in a name to the parser
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
4855eafb39
commit
fa410c668a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue