Add fallback compression algorithm

Disabled.
This commit is contained in:
Davide De Rosa 2021-01-13 08:10:24 +01:00
parent 6beb303bcf
commit e388842d37
1 changed files with 7 additions and 0 deletions

View File

@ -168,6 +168,8 @@ extension OpenVPN {
static let digest: Digest = .sha1 static let digest: Digest = .sha1
static let compressionFraming: CompressionFraming = .disabled static let compressionFraming: CompressionFraming = .disabled
static let compressionAlgorithm: CompressionAlgorithm = .disabled
} }
/// The way to create a `Configuration` object for a `OpenVPNSession`. /// The way to create a `Configuration` object for a `OpenVPNSession`.
@ -351,6 +353,11 @@ extension OpenVPN {
public var fallbackCompressionFraming: CompressionFraming { public var fallbackCompressionFraming: CompressionFraming {
return compressionFraming ?? Fallback.compressionFraming return compressionFraming ?? Fallback.compressionFraming
} }
/// :nodoc:
public var fallbackCompressionAlgorithm: CompressionAlgorithm {
return compressionAlgorithm ?? Fallback.compressionAlgorithm
}
} }
/// The immutable configuration for `OpenVPNSession`. /// The immutable configuration for `OpenVPNSession`.