From 06a872c4489acc5b77dedec719d90ffb8b81e449 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 25 Feb 2019 23:07:17 +0100 Subject: [PATCH] Add ProviderError.serverCompression mapping --- .../Sources/AppExtension/TunnelKitProvider+Interaction.swift | 3 +++ TunnelKit/Sources/AppExtension/TunnelKitProvider.swift | 3 +++ 2 files changed, 6 insertions(+) diff --git a/TunnelKit/Sources/AppExtension/TunnelKitProvider+Interaction.swift b/TunnelKit/Sources/AppExtension/TunnelKitProvider+Interaction.swift index 0bf6e74..5ffe367 100644 --- a/TunnelKit/Sources/AppExtension/TunnelKitProvider+Interaction.swift +++ b/TunnelKit/Sources/AppExtension/TunnelKitProvider+Interaction.swift @@ -117,6 +117,9 @@ extension TunnelKitProvider { /// Data encryption/decryption failed. case encryptionData + /// Server uses compression and this is not supported. + case serverCompression + /// Tunnel timed out. case timeout diff --git a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift index 66c1960..4d11b5b 100644 --- a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift +++ b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift @@ -595,6 +595,9 @@ extension TunnelKitProvider { case .badCredentials: return .authentication + case .serverCompression: + return .serverCompression + case .failedLinkWrite: return .linkError