mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Wrap connection timeout property and update documentation for IPv6 preference options
This commit is contained in:
@@ -12,14 +12,13 @@
|
||||
|
||||
/**
|
||||
IPv6 preference options
|
||||
|
||||
- IPv6PreferenceEnabled: request combined IPv4/IPv6 tunnel
|
||||
- IPv6PreferenceDisabled: disable IPv6, so tunnel will be IPv4-only
|
||||
- IPv6PreferenceDefault: leave decision to server
|
||||
*/
|
||||
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
|
||||
};
|
||||
|
||||
@@ -60,4 +59,9 @@ typedef NS_ENUM(NSInteger, IPv6Preference) {
|
||||
*/
|
||||
@property (nonatomic) IPv6Preference ipv6;
|
||||
|
||||
/**
|
||||
Connection timeout in seconds, or 0 to retry indefinitely
|
||||
*/
|
||||
@property (nonatomic) NSInteger connectionTimeout;
|
||||
|
||||
@end
|
||||
|
||||
@@ -121,4 +121,12 @@ using namespace openvpn;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSInteger)connectionTimeout {
|
||||
return _config.connTimeout;
|
||||
}
|
||||
|
||||
- (void)setConnectionTimeout:(NSInteger)connectionTimeout {
|
||||
_config.connTimeout = connectionTimeout;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user