mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-05-13 00:04:14 +08:00
Add retryOnAuthFailed property
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user