// // OpenVPNConfiguration.h // OpenVPN Adapter // // Created by Sergey Abramchuk on 21.04.17. // // #import // TODO: Wrap ClientAPI::Config into Objective-C class /** IPv6 preference options */ typedef NS_ENUM(NSInteger, IPv6Preference) { /// Request combined IPv4/IPv6 tunnel IPv6PreferenceEnabled, /// Disable IPv6, so tunnel will be IPv4-only IPv6PreferenceDisabled, /// Leave decision to server IPv6PreferenceDefault }; @interface OpenVPNConfiguration : NSObject /** OpenVPN profile as a NSData */ @property (nullable, nonatomic) NSData *fileContent; /** OpenVPN profile as series of key/value pairs (may be provided exclusively or in addition to file content). */ @property (nullable, nonatomic) NSDictionary *settings; /** Set to identity OpenVPN GUI version. Format should be "" Passed to server as IV_GUI_VER. */ @property (nullable, nonatomic) NSString *guiVersion; /** Use a different server than that specified in "remote" option of profile */ @property (nullable, nonatomic) NSString *serverOverride; /** Force a given transport protocol Should be tcp, udp, or adaptive. */ @property (nullable, nonatomic) NSString *protoOverride; /** IPv6 preference */ @property (nonatomic) IPv6Preference ipv6; /** Connection timeout in seconds, or 0 to retry indefinitely */ @property (nonatomic) NSInteger connectionTimeout; /** Keep tun interface active during pauses or reconnections */ @property (nonatomic) BOOL tunPersist; @end