From e388842d37aaf45a6638efbe3ccdbe7c23dbad8e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 13 Jan 2021 08:10:24 +0100 Subject: [PATCH] Add fallback compression algorithm Disabled. --- TunnelKit/Sources/Protocols/OpenVPN/Configuration.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TunnelKit/Sources/Protocols/OpenVPN/Configuration.swift b/TunnelKit/Sources/Protocols/OpenVPN/Configuration.swift index 26cd931..afc6009 100644 --- a/TunnelKit/Sources/Protocols/OpenVPN/Configuration.swift +++ b/TunnelKit/Sources/Protocols/OpenVPN/Configuration.swift @@ -168,6 +168,8 @@ extension OpenVPN { static let digest: Digest = .sha1 static let compressionFraming: CompressionFraming = .disabled + + static let compressionAlgorithm: CompressionAlgorithm = .disabled } /// The way to create a `Configuration` object for a `OpenVPNSession`. @@ -351,6 +353,11 @@ extension OpenVPN { public var fallbackCompressionFraming: CompressionFraming { return compressionFraming ?? Fallback.compressionFraming } + + /// :nodoc: + public var fallbackCompressionAlgorithm: CompressionAlgorithm { + return compressionAlgorithm ?? Fallback.compressionAlgorithm + } } /// The immutable configuration for `OpenVPNSession`.