Tunnels list: Need to pass in a name to the parser
This commit is contained in:
parent
d7691158a4
commit
54dc70f910
|
@ -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