Fix incomplete builder() from Configuration

Adding a Configuration field is error-prone beyond reason...
This commit is contained in:
Davide De Rosa 2019-04-11 15:29:53 +02:00
parent ef82b86627
commit 5df614b5e2
1 changed files with 3 additions and 0 deletions

View File

@ -555,9 +555,12 @@ extension TunnelKitProvider.Configuration {
*/ */
public func builder() -> TunnelKitProvider.ConfigurationBuilder { public func builder() -> TunnelKitProvider.ConfigurationBuilder {
var builder = TunnelKitProvider.ConfigurationBuilder(sessionConfiguration: sessionConfiguration) var builder = TunnelKitProvider.ConfigurationBuilder(sessionConfiguration: sessionConfiguration)
builder.prefersResolvedAddresses = prefersResolvedAddresses
builder.resolvedAddresses = resolvedAddresses
builder.mtu = mtu builder.mtu = mtu
builder.shouldDebug = shouldDebug builder.shouldDebug = shouldDebug
builder.debugLogFormat = debugLogFormat builder.debugLogFormat = debugLogFormat
builder.masksPrivateData = masksPrivateData
return builder return builder
} }
} }