Add retryOnAuthFailed property

This commit is contained in:
Sergey Abramchuk
2019-01-13 14:30:52 +03:00
parent fa25b668e0
commit 16c2801168
2 changed files with 14 additions and 0 deletions
@@ -85,6 +85,12 @@ typedef NS_ENUM(NSInteger, OpenVPNTLSCertProfile);
*/
@property (nonatomic) BOOL autologinSessions;
/**
If YES, consider AUTH_FAILED to be a non-fatal error,
and retry the connection after a pause.
*/
@property (nonatomic) BOOL retryOnAuthFailed;
/**
If YES, don't send client cert/key to peer
*/
@@ -340,6 +340,14 @@ NSString *const OpenVPNTLSCertProfileDefaultValue = @"default";
_config.autologinSessions = autologinSessions;
}
- (BOOL)retryOnAuthFailed {
return _config.retryOnAuthFailed;
}
- (void)setRetryOnAuthFailed:(BOOL)retryOnAuthFailed {
_config.retryOnAuthFailed = retryOnAuthFailed;
}
- (BOOL)disableClientCert {
return _config.disableClientCert;
}