Skip to content

Commit eae4811

Browse files
PlatformSDK: implement VPNProfile.connectionDate on KapePlatformSDKTunnelProfile
1 parent 57b33ee commit eae4811

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

LocalPackages/PIALibrary/Sources/PIALibrary/VPN/KapePlatformSDK/TunnelProfile/KapePlatformSDKTunnelProfile.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public final class KapePlatformSDKTunnelProfile: NetworkExtensionProfile {
4040

4141
public var native: Any?
4242

43+
public var connectionDate: Date? {
44+
guard let native = native as? NETunnelProviderManager else { return nil }
45+
return native.connection.connectedDate
46+
}
47+
4348
public init(bundleIdentifier: String) {
4449
self.bundleIdentifier = bundleIdentifier
4550
}

0 commit comments

Comments
 (0)