Fix a few things in demo

- OpenVPN: Set default gateway
- WireGuard: "Connect" button not updated
This commit is contained in:
Davide De Rosa 2022-03-25 17:58:38 +01:00
parent 3bdff1ee8b
commit bbdc21fd61
2 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,7 @@ M69t86apMrAxkUxVJAWLRBd9fbYyzJgTW61tFqXWTZpiz6bhuWApSEzaHcL3/f5l
builder.clientCertificate = clientCertificate
builder.clientKey = clientKey
builder.mtu = 1350
builder.routingPolicies = [.IPv4, .IPv6]
let cfg = builder.build()
var providerConfiguration = OpenVPN.ProviderConfiguration(title, appGroup: appGroup, configuration: cfg)

View File

@ -131,6 +131,7 @@ class WireGuardViewController: UIViewController {
}
@objc private func VPNStatusDidChange(notification: Notification) {
vpnStatus = notification.vpnStatus
print("VPNStatusDidChange: \(notification.vpnStatus)")
updateButton()
}