Retain .endpointProtocols for migration

For deserialization of old format.
This commit is contained in:
Davide De Rosa 2019-04-04 11:54:59 +02:00
parent 7aec0637b2
commit cfe61d5d40
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,7 @@ extension TunnelKitProvider {
public static let defaults = Configuration(
prefersResolvedAddresses: false,
resolvedAddresses: nil,
endpointProtocols: nil,
mtu: 1250,
sessionConfiguration: SessionProxy.Configuration(
cipher: .aes128cbc,
@ -219,6 +220,7 @@ extension TunnelKitProvider {
return Configuration(
prefersResolvedAddresses: prefersResolvedAddresses,
resolvedAddresses: resolvedAddresses,
endpointProtocols: nil,
mtu: mtu,
sessionConfiguration: sessionConfiguration,
shouldDebug: shouldDebug,
@ -288,6 +290,10 @@ extension TunnelKitProvider {
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.resolvedAddresses`
public let resolvedAddresses: [String]?
/// - Seealso: `SessionProxy.Configuration.endpointProtocols`
@available(*, deprecated)
public var endpointProtocols: [EndpointProtocol]?
/// - Seealso: `TunnelKitProvider.ConfigurationBuilder.mtu`
public let mtu: Int