From 36d61c3da5c05df3f8e6d43181de86bad335e81e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 28 Oct 2022 16:21:18 +0200 Subject: [PATCH] Enable data count in Demo It is off by default. Closes #287 --- Demo/Demo/OpenVPNPacketTunnelProvider.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Demo/Demo/OpenVPNPacketTunnelProvider.swift b/Demo/Demo/OpenVPNPacketTunnelProvider.swift index d342cdc..2002a3c 100644 --- a/Demo/Demo/OpenVPNPacketTunnelProvider.swift +++ b/Demo/Demo/OpenVPNPacketTunnelProvider.swift @@ -23,7 +23,12 @@ // along with TunnelKit. If not, see . // +import Foundation import TunnelKitOpenVPNAppExtension class PacketTunnelProvider: OpenVPNTunnelProvider { + override func startTunnel(options: [String : NSObject]? = nil) async throws { + dataCountInterval = 3 + try await super.startTunnel(options: options) + } }