aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Coordinators/AppCoordinator.swift
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-12 21:50:54 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-12 21:50:54 +0200
commita81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2 (patch)
treee7ee5079463451192232e4e390969c9b765e48ac /WireGuard/Coordinators/AppCoordinator.swift
parentConfig tweaking. (diff)
downloadwireguard-apple-a81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2.tar.xz
wireguard-apple-a81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2.zip
Log on VPNStatusDidChange.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/Coordinators/AppCoordinator.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/WireGuard/Coordinators/AppCoordinator.swift b/WireGuard/Coordinators/AppCoordinator.swift
index 2477353..6941d22 100644
--- a/WireGuard/Coordinators/AppCoordinator.swift
+++ b/WireGuard/Coordinators/AppCoordinator.swift
@@ -97,6 +97,12 @@ class AppCoordinator: RootViewCoordinator {
// MARK: - NEVPNManager handling
@objc private func VPNStatusDidChange(notification: NSNotification) {
+ //TODO implement
+ guard let session = notification.object as? NETunnelProviderSession else {
+ return
+ }
+
+ os_log("VPNStatusDidChange: %{public}@", log: Log.general, type: .debug, description(for: session.status))
}
public func showError(_ error: Error) {