diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-19 16:26:28 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-19 18:35:53 +0530 |
commit | 5c501ac9a61da1804f816ddcff812939c06c5c37 (patch) | |
tree | 060195496895a5d693b1c079982c153932ee4bf7 /WireGuard | |
parent | Remove non-helpful comments (diff) | |
download | wireguard-apple-5c501ac9a61da1804f816ddcff812939c06c5c37.tar.xz wireguard-apple-5c501ac9a61da1804f816ddcff812939c06c5c37.zip |
NE: Log whether tunnel was activated from the app or not
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift index 814ed59..f0ae3e7 100644 --- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift +++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift @@ -41,6 +41,12 @@ class PacketTunnelProvider: NEPacketTunnelProvider { let tunnelName = tunnelConfiguration.interface.name wg_log(.info, message: "Starting tunnel '\(tunnelName)'") + if activationAttemptId != nil { + wg_log(.info, staticMessage: "Tunnel activated from the app") + } else { + wg_log(.info, staticMessage: "Tunnel not activated from the app") + } + let isActivateOnDemandEnabled = tunnelProviderProtocol.isActivateOnDemandEnabled if isActivateOnDemandEnabled { wg_log(.info, staticMessage: "Tunnel has Activate On Demand enabled") |