Fix search path for imported host files

This commit is contained in:
Davide De Rosa 2021-10-17 13:15:04 +02:00
parent de2b689436
commit 0ef8dff171
3 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)")