mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Wrap echo and info properties
This commit is contained in:
@@ -190,4 +190,14 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile) {
|
||||
*/
|
||||
@property (nullable, nonatomic) NSDictionary<NSString *, NSString *> *peerInfo;
|
||||
|
||||
/**
|
||||
Pass through pushed "echo" directives via "ECHO" event
|
||||
*/
|
||||
@property (nonatomic) BOOL echo;
|
||||
|
||||
/**
|
||||
Pass through control channel INFO notifications via "INFO" event
|
||||
*/
|
||||
@property (nonatomic) BOOL info;
|
||||
|
||||
@end
|
||||
|
||||
@@ -241,7 +241,7 @@ using namespace openvpn;
|
||||
return _config.forceAesCbcCiphersuites;
|
||||
}
|
||||
|
||||
-(void)setForceCiphersuitesAESCBC:(BOOL)forceCiphersuitesAESCBC {
|
||||
- (void)setForceCiphersuitesAESCBC:(BOOL)forceCiphersuitesAESCBC {
|
||||
_config.forceAesCbcCiphersuites = forceCiphersuitesAESCBC;
|
||||
}
|
||||
|
||||
@@ -343,4 +343,20 @@ using namespace openvpn;
|
||||
}];
|
||||
}
|
||||
|
||||
- (BOOL)echo {
|
||||
return _config.echo;
|
||||
}
|
||||
|
||||
- (void)setEcho:(BOOL)echo {
|
||||
_config.echo = echo;
|
||||
}
|
||||
|
||||
- (BOOL)info {
|
||||
return _config.info;
|
||||
}
|
||||
|
||||
- (void)setInfo:(BOOL)info {
|
||||
_config.info = info;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user