diff options
author | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-08-12 21:50:54 +0200 |
---|---|---|
committer | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-08-12 21:50:54 +0200 |
commit | a81e8dcf3cb0dc10aea41a073cf3fd630e67a3d2 (patch) | |
tree | e7ee5079463451192232e4e390969c9b765e48ac /WireGuard/Coordinators/AppCoordinator.swift | |
parent | Config tweaking. (diff) | |
download | wireguard-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.swift | 6 |
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) { |