Fix search path for imported host files
This commit is contained in:
parent
de2b689436
commit
0ef8dff171
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 1.17.0 Beta 2820 (2021-10-16)
|
||||
## Unreleased
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Fixed
|
||||
|
||||
- Missing account guidance footer in some providers.
|
||||
- Files imported via Music (iTunes) File Sharing did not show up.
|
||||
|
||||
## 1.16.0 (2021-08-09)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 1.17.0 Beta 2820 (2021-10-16)
|
||||
## Unreleased
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -59,7 +59,8 @@ public extension ConnectionService {
|
|||
|
||||
func pendingConfigurationURLs() -> [URL] {
|
||||
do {
|
||||
let list = try FileManager.default.contentsOfDirectory(at: rootURL, includingPropertiesForKeys: nil, options: [])
|
||||
let url = FileManager.default.userURL(for: .documentDirectory, appending: nil)
|
||||
let list = try FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil, options: [])
|
||||
return list.filter { $0.pathExtension == "ovpn" }
|
||||
} catch let e {
|
||||
log.error("Could not list imported configurations: \(e)")
|
||||
|
|
Loading…
Reference in New Issue