Update demo accordingly
This commit is contained in:
parent
7aa4a0cc04
commit
a1cd6de860
|
@ -30,7 +30,7 @@ extension ViewController {
|
|||
password: password
|
||||
)
|
||||
|
||||
var builder = TunnelKitProvider.ConfigurationBuilder(appGroup: ViewController.appGroup)
|
||||
var builder = TunnelKitProvider.ConfigurationBuilder()
|
||||
let socketType: TunnelKitProvider.SocketType = switchTCP.isOn ? .tcp : .udp
|
||||
builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(socketType, port)]
|
||||
builder.cipher = .aes128cbc
|
||||
|
@ -44,6 +44,7 @@ extension ViewController {
|
|||
let configuration = builder.build()
|
||||
return try! configuration.generatedTunnelProtocol(
|
||||
withBundleIdentifier: ViewController.bundleIdentifier,
|
||||
appGroup: ViewController.appGroup,
|
||||
endpoint: endpoint
|
||||
)
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ extension ViewController {
|
|||
password: password
|
||||
)
|
||||
|
||||
var builder = TunnelKitProvider.ConfigurationBuilder(appGroup: ViewController.appGroup)
|
||||
var builder = TunnelKitProvider.ConfigurationBuilder()
|
||||
// let socketType: TunnelKitProvider.SocketType = isTCP ? .tcp : .udp
|
||||
let socketType: TunnelKitProvider.SocketType = .udp
|
||||
builder.endpointProtocols = [TunnelKitProvider.EndpointProtocol(socketType, port)]
|
||||
|
@ -45,6 +45,7 @@ extension ViewController {
|
|||
let configuration = builder.build()
|
||||
return try! configuration.generatedTunnelProtocol(
|
||||
withBundleIdentifier: ViewController.bundleIdentifier,
|
||||
appGroup: ViewController.appGroup,
|
||||
endpoint: endpoint
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue