Fix checksEKU not propagated to TunnelKitProvider
This commit is contained in:
parent
182a5fa02f
commit
d03f1bd9af
|
@ -5,6 +5,12 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- `checksEKU` not propagated to TunnelKitProvider.
|
||||||
|
|
||||||
## 1.5.1 (2019-03-25)
|
## 1.5.1 (2019-03-25)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -190,6 +190,7 @@ extension TunnelKitProvider {
|
||||||
sessionConfigurationBuilder.keepAliveInterval = providerConfiguration[S.keepAlive] as? TimeInterval ?? ConfigurationBuilder.defaults.sessionConfiguration.keepAliveInterval
|
sessionConfigurationBuilder.keepAliveInterval = providerConfiguration[S.keepAlive] as? TimeInterval ?? ConfigurationBuilder.defaults.sessionConfiguration.keepAliveInterval
|
||||||
sessionConfigurationBuilder.renegotiatesAfter = providerConfiguration[S.renegotiatesAfter] as? TimeInterval ?? ConfigurationBuilder.defaults.sessionConfiguration.renegotiatesAfter
|
sessionConfigurationBuilder.renegotiatesAfter = providerConfiguration[S.renegotiatesAfter] as? TimeInterval ?? ConfigurationBuilder.defaults.sessionConfiguration.renegotiatesAfter
|
||||||
sessionConfigurationBuilder.usesPIAPatches = providerConfiguration[S.usesPIAPatches] as? Bool ?? ConfigurationBuilder.defaults.sessionConfiguration.usesPIAPatches
|
sessionConfigurationBuilder.usesPIAPatches = providerConfiguration[S.usesPIAPatches] as? Bool ?? ConfigurationBuilder.defaults.sessionConfiguration.usesPIAPatches
|
||||||
|
sessionConfigurationBuilder.checksEKU = providerConfiguration[S.checksEKU] as? Bool ?? ConfigurationBuilder.defaults.sessionConfiguration.checksEKU
|
||||||
sessionConfigurationBuilder.dnsServers = providerConfiguration[S.dnsServers] as? [String]
|
sessionConfigurationBuilder.dnsServers = providerConfiguration[S.dnsServers] as? [String]
|
||||||
sessionConfigurationBuilder.randomizeEndpoint = providerConfiguration[S.randomizeEndpoint] as? Bool ?? ConfigurationBuilder.defaults.sessionConfiguration.randomizeEndpoint
|
sessionConfigurationBuilder.randomizeEndpoint = providerConfiguration[S.randomizeEndpoint] as? Bool ?? ConfigurationBuilder.defaults.sessionConfiguration.randomizeEndpoint
|
||||||
sessionConfiguration = sessionConfigurationBuilder.build()
|
sessionConfiguration = sessionConfigurationBuilder.build()
|
||||||
|
@ -261,6 +262,8 @@ extension TunnelKitProvider {
|
||||||
|
|
||||||
static let usesPIAPatches = "UsesPIAPatches"
|
static let usesPIAPatches = "UsesPIAPatches"
|
||||||
|
|
||||||
|
static let checksEKU = "ChecksEKU"
|
||||||
|
|
||||||
static let dnsServers = "DNSServers"
|
static let dnsServers = "DNSServers"
|
||||||
|
|
||||||
static let randomizeEndpoint = "RandomizeEndpoint"
|
static let randomizeEndpoint = "RandomizeEndpoint"
|
||||||
|
@ -427,6 +430,9 @@ extension TunnelKitProvider {
|
||||||
if let usesPIAPatches = sessionConfiguration.usesPIAPatches {
|
if let usesPIAPatches = sessionConfiguration.usesPIAPatches {
|
||||||
dict[S.usesPIAPatches] = usesPIAPatches
|
dict[S.usesPIAPatches] = usesPIAPatches
|
||||||
}
|
}
|
||||||
|
if let checksEKU = sessionConfiguration.checksEKU {
|
||||||
|
dict[S.checksEKU] = checksEKU
|
||||||
|
}
|
||||||
if let dnsServers = sessionConfiguration.dnsServers {
|
if let dnsServers = sessionConfiguration.dnsServers {
|
||||||
dict[S.dnsServers] = dnsServers
|
dict[S.dnsServers] = dnsServers
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue