mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-19 06:49:08 +00:00
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
Block a user