From c09ab7265777f840dd0ec7b226cb96f237c96eee Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Wed, 26 Apr 2017 14:34:36 +0300 Subject: [PATCH] Disable instantiation of connection info, interface stats and transport stats outside of framework --- OpenVPN Adapter/OpenVPNConnectionInfo.h | 2 ++ OpenVPN Adapter/OpenVPNInterfaceStats.h | 2 ++ OpenVPN Adapter/OpenVPNTransportStats.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/OpenVPN Adapter/OpenVPNConnectionInfo.h b/OpenVPN Adapter/OpenVPNConnectionInfo.h index b5c35de..369b6fd 100644 --- a/OpenVPN Adapter/OpenVPNConnectionInfo.h +++ b/OpenVPN Adapter/OpenVPNConnectionInfo.h @@ -26,4 +26,6 @@ @property (nullable, readonly, nonatomic) NSString *clientIP; @property (nullable, readonly, nonatomic) NSString *tunName; +- (nonnull instancetype) __unavailable init; + @end diff --git a/OpenVPN Adapter/OpenVPNInterfaceStats.h b/OpenVPN Adapter/OpenVPNInterfaceStats.h index 6fcf612..c909a8a 100644 --- a/OpenVPN Adapter/OpenVPNInterfaceStats.h +++ b/OpenVPN Adapter/OpenVPNInterfaceStats.h @@ -17,4 +17,6 @@ @property (readonly, nonatomic) NSInteger errorsIn; @property (readonly, nonatomic) NSInteger errorsOut; +- (nonnull instancetype) __unavailable init; + @end diff --git a/OpenVPN Adapter/OpenVPNTransportStats.h b/OpenVPN Adapter/OpenVPNTransportStats.h index 9be8323..7c07003 100644 --- a/OpenVPN Adapter/OpenVPNTransportStats.h +++ b/OpenVPN Adapter/OpenVPNTransportStats.h @@ -39,4 +39,6 @@ */ @property (readonly, nonatomic) NSInteger lastPacketReceived; +- (nonnull instancetype) __unavailable init; + @end