Fix a few things in demo
- OpenVPN: Set default gateway - WireGuard: "Connect" button not updated
This commit is contained in:
parent
3bdff1ee8b
commit
bbdc21fd61
|
@ -182,6 +182,7 @@ M69t86apMrAxkUxVJAWLRBd9fbYyzJgTW61tFqXWTZpiz6bhuWApSEzaHcL3/f5l
|
||||||
builder.clientCertificate = clientCertificate
|
builder.clientCertificate = clientCertificate
|
||||||
builder.clientKey = clientKey
|
builder.clientKey = clientKey
|
||||||
builder.mtu = 1350
|
builder.mtu = 1350
|
||||||
|
builder.routingPolicies = [.IPv4, .IPv6]
|
||||||
let cfg = builder.build()
|
let cfg = builder.build()
|
||||||
|
|
||||||
var providerConfiguration = OpenVPN.ProviderConfiguration(title, appGroup: appGroup, configuration: cfg)
|
var providerConfiguration = OpenVPN.ProviderConfiguration(title, appGroup: appGroup, configuration: cfg)
|
||||||
|
|
|
@ -131,6 +131,7 @@ class WireGuardViewController: UIViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc private func VPNStatusDidChange(notification: Notification) {
|
@objc private func VPNStatusDidChange(notification: Notification) {
|
||||||
|
vpnStatus = notification.vpnStatus
|
||||||
print("VPNStatusDidChange: \(notification.vpnStatus)")
|
print("VPNStatusDidChange: \(notification.vpnStatus)")
|
||||||
updateButton()
|
updateButton()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue