Upgrade demo code to TunnelKit 1.4.0

Fixes #52
This commit is contained in:
Davide De Rosa 2018-12-04 20:24:26 +01:00
parent 62c9b98092
commit 7179d6471c
4 changed files with 17 additions and 11 deletions

View File

@ -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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Compiling errors in demo target.
## 1.4.0 (2018-11-12)
### Added

View File

@ -95,8 +95,8 @@ extension ViewController {
sessionBuilder.renegotiatesAfter = nil
sessionBuilder.usesPIAPatches = true
var builder = TunnelKitProvider.ConfigurationBuilder(sessionConfiguration: sessionBuilder.build())
let socketType: TunnelKitProvider.SocketType = switchTCP.isOn ? .tcp : .udp
builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(socketType, port)]
let socketType: SocketType = switchTCP.isOn ? .tcp : .udp
builder.endpointProtocols = [EndpointProtocol(socketType, port)]
builder.mtu = 1350
builder.shouldDebug = true
builder.debugLogKey = "Log"

View File

@ -95,9 +95,9 @@ extension ViewController {
sessionBuilder.renegotiatesAfter = nil
sessionBuilder.usesPIAPatches = true
var builder = TunnelKitProvider.ConfigurationBuilder(sessionConfiguration: sessionBuilder.build())
// let socketType: TunnelKitProvider.SocketType = isTCP ? .tcp : .udp
let socketType: TunnelKitProvider.SocketType = .udp
builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(socketType, port)]
// let socketType: SocketType = isTCP ? .tcp : .udp
let socketType: SocketType = .udp
builder.endpointProtocols = [EndpointProtocol(socketType, port)]
builder.mtu = 1350
builder.shouldDebug = true
builder.debugLogKey = "Log"

View File

@ -1,13 +1,13 @@
PODS:
- OpenSSL-Apple (1.1.0i-v2)
- SwiftyBeaver (1.6.1)
- TunnelKit (1.3.0):
- TunnelKit/AppExtension (= 1.3.0)
- TunnelKit/Core (= 1.3.0)
- TunnelKit/AppExtension (1.3.0):
- TunnelKit (1.4.0):
- TunnelKit/AppExtension (= 1.4.0)
- TunnelKit/Core (= 1.4.0)
- TunnelKit/AppExtension (1.4.0):
- SwiftyBeaver
- TunnelKit/Core
- TunnelKit/Core (1.3.0):
- TunnelKit/Core (1.4.0):
- OpenSSL-Apple (~> 1.1.0h)
- SwiftyBeaver
@ -26,7 +26,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
OpenSSL-Apple: a93b8f2eec8783ff40d9a9304de180ab68bb647c
SwiftyBeaver: ccfcdf85a04d429f1633f668650b0ce8020bda3a
TunnelKit: 8e747cac28959ebfdfa4eeab589c933f1856c0fb
TunnelKit: 8ac6ca743020b62e63bea66b3d169c53666fb737
PODFILE CHECKSUM: f66dfaaa92a8d04ab2743f3caeab0ac9f9f25859