Fix missing configuration title in Demo

This commit is contained in:
Davide De Rosa 2020-11-12 19:19:59 +01:00
parent 6df141d152
commit ca60e3db39
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class ViewController: UIViewController, URLSessionDataDelegate {
appGroup: appGroup, appGroup: appGroup,
credentials: credentials credentials: credentials
) )
let neCfg = NetworkExtensionVPNConfiguration(protocolConfiguration: proto, onDemandRules: []) let neCfg = NetworkExtensionVPNConfiguration(title: "BasicTunnel", protocolConfiguration: proto, onDemandRules: [])
vpn.reconnect(configuration: neCfg) { (error) in vpn.reconnect(configuration: neCfg) { (error) in
if let error = error { if let error = error {
print("configure error: \(error)") print("configure error: \(error)")

View File

@ -90,7 +90,7 @@ class ViewController: NSViewController {
appGroup: appGroup, appGroup: appGroup,
credentials: credentials credentials: credentials
) )
let neCfg = NetworkExtensionVPNConfiguration(protocolConfiguration: proto, onDemandRules: []) let neCfg = NetworkExtensionVPNConfiguration(title: "BasicTunnel", protocolConfiguration: proto, onDemandRules: [])
vpn.reconnect(configuration: neCfg) { (error) in vpn.reconnect(configuration: neCfg) { (error) in
if let error = error { if let error = error {
print("configure error: \(error)") print("configure error: \(error)")