Unverified Commit 6284b2f8 authored by Davide De Rosa's avatar Davide De Rosa Committed by GitHub
Browse files

Merge pull request #8 from pia-foss/fall-back-custom-configuration

Fall back to default VPN custom configuration
parents 1dfc06e6 db5b82c7
......@@ -132,7 +132,7 @@ extension Client {
var allConfigurations: [String: VPNCustomConfiguration] = [:]
for (vpnType, map) in allMaps {
let profile = configuration.profile(forVPNType: vpnType)
guard let configuration = profile?.parsedCustomConfiguration(from: map) else {
guard let configuration = profile?.parsedCustomConfiguration(from: map) ?? defaults.vpnCustomConfiguration(for: vpnType) else {
continue
}
allConfigurations[vpnType] = configuration
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment