Update Demo

This commit is contained in:
Davide De Rosa 2019-04-09 21:02:39 +02:00
parent 914864c31a
commit ef82b86627
3 changed files with 8 additions and 8 deletions

View File

@ -94,6 +94,7 @@ extension ViewController {
sessionBuilder.digest = .sha1
sessionBuilder.compressionFraming = .compLZO
sessionBuilder.renegotiatesAfter = nil
sessionBuilder.hostname = hostname
let socketType: SocketType = switchTCP.isOn ? .tcp : .udp
sessionBuilder.endpointProtocols = [EndpointProtocol(socketType, port)]
sessionBuilder.usesPIAPatches = true
@ -106,7 +107,6 @@ extension ViewController {
return try! configuration.generatedTunnelProtocol(
withBundleIdentifier: ViewController.bundleIdentifier,
appGroup: ViewController.appGroup,
hostname: hostname,
credentials: credentials
)
}

View File

@ -94,6 +94,7 @@ extension ViewController {
sessionBuilder.digest = .sha1
sessionBuilder.compressionFraming = .compLZO
sessionBuilder.renegotiatesAfter = nil
sessionBuilder.hostname = hostname
// let socketType: SocketType = isTCP ? .tcp : .udp
let socketType: SocketType = .udp
sessionBuilder.endpointProtocols = [EndpointProtocol(socketType, port)]
@ -107,7 +108,6 @@ extension ViewController {
return try! configuration.generatedTunnelProtocol(
withBundleIdentifier: ViewController.bundleIdentifier,
appGroup: ViewController.appGroup,
hostname: hostname,
credentials: credentials
)
}

View File

@ -1,13 +1,13 @@
PODS:
- OpenSSL-Apple (1.1.0i.2)
- SwiftyBeaver (1.7.0)
- TunnelKit (1.6.0):
- TunnelKit/AppExtension (= 1.6.0)
- TunnelKit/Core (= 1.6.0)
- TunnelKit/AppExtension (1.6.0):
- TunnelKit (1.6.2):
- TunnelKit/AppExtension (= 1.6.2)
- TunnelKit/Core (= 1.6.2)
- TunnelKit/AppExtension (1.6.2):
- SwiftyBeaver
- TunnelKit/Core
- TunnelKit/Core (1.6.0):
- TunnelKit/Core (1.6.2):
- OpenSSL-Apple (~> 1.1.0i.2)
- SwiftyBeaver
@ -26,7 +26,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
OpenSSL-Apple: 37a8c0b04df4bb8971deef4671cc29222861319c
SwiftyBeaver: 4cc0080d2e23f980652e28978db11a5c9da39165
TunnelKit: cd10ff6f4368e82414a72e6a111dae369252964e
TunnelKit: 6be99150922d3f14187dc29732032712dd4400e3
PODFILE CHECKSUM: f66dfaaa92a8d04ab2743f3caeab0ac9f9f25859