NE: Log whether tunnel was activated from the app or not
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
35450bf407
commit
5c501ac9a6
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue